From 202ce7cc59913dadbb3018d812af5c041028fd71 Mon Sep 17 00:00:00 2001 From: ChengZi Date: Wed, 29 May 2024 16:11:31 +0800 Subject: [PATCH] test pr action Signed-off-by: ChengZi --- .github/workflows/black.yml | 28 +++++++++--------- .github/workflows/pr_to_milvus_doc.yml | 29 +++++++++++++++++++ .../integration/evaluation_with_ragas.ipynb | 2 +- 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/pr_to_milvus_doc.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9bb547ffd..72982f451 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,14 +1,14 @@ -name: Workflow for Black - -on: [push, pull_request] - -jobs: - Black-Check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: psf/black@stable - with: - options: "--check --diff --verbose" - src: "./bootcamp/tutorials" - jupyter: true \ No newline at end of file +#name: Workflow for Black +# +#on: [push, pull_request] +# +#jobs: +# Black-Check: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@master +# - uses: psf/black@stable +# with: +# options: "--check --diff --verbose" +# src: "./bootcamp/tutorials" +# jupyter: true \ No newline at end of file diff --git a/.github/workflows/pr_to_milvus_doc.yml b/.github/workflows/pr_to_milvus_doc.yml new file mode 100644 index 000000000..0423f3d6e --- /dev/null +++ b/.github/workflows/pr_to_milvus_doc.yml @@ -0,0 +1,29 @@ +name: Workflow that generate a PR to milvus doc + +on: + push: + paths: + - 'bootcamp/tutorials/**' + +jobs: + PR-to-Milvus-Doc: + runs-on: ubuntu-latest + env: + PAT_TOKEN: ${{ secrets.PAT_TOKEN }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Clone milvus-docs repository + run: | + git clone https://user:$PAT_TOKEN@github.com/milvus-io/milvus-docs.git + cd milvus-docs + touch site/en/integrations/test_file.py + git add . + git commit -m "Update evaluation_with_ragas.md" + git push diff --git a/bootcamp/tutorials/integration/evaluation_with_ragas.ipynb b/bootcamp/tutorials/integration/evaluation_with_ragas.ipynb index 893133311..a0698a1d2 100644 --- a/bootcamp/tutorials/integration/evaluation_with_ragas.ipynb +++ b/bootcamp/tutorials/integration/evaluation_with_ragas.ipynb @@ -18,7 +18,7 @@ "\n", "The RAG system combines a retrieval system with a generative model to generate new text based on a given prompt. The system first retrieves relevant documents from a corpus using a vector similarity search engine like Milvus, and then uses a generative model to generate new text based on the retrieved documents.\n", "\n", - "[Ragas](https://docs.ragas.io/en/latest/index.html#) is a framework that helps you evaluate your RAG pipelines. There are existing tools and frameworks that help you build these pipelines but evaluating it and quantifying your pipeline performance can be hard. This is where Ragas (RAG Assessment) comes in.\n", + "[Ragas](https://docs.ragas.io/en/latest/index.html#) is a framework that help you evaluate your RAG pipelines. There are existing tools and frameworks that help you build these pipelines but evaluating it and quantifying your pipeline performance can be hard. This is where Ragas (RAG Assessment) comes in.\n", "\n", "\n", "\n",