diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml new file mode 100644 index 0000000..282301f --- /dev/null +++ b/.github/workflows/publish_pypi.yml @@ -0,0 +1,17 @@ +name: Publish to Guardrails Hub + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Build & Deploy + uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main + with: + guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }} + validator_id: guardrails/qa_relevance_llm_eval \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0d1552c..f975b8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "qa_relevance_llm_eval" -version = "0.0.0" +version = "0.0.1" description = "Validates that an answer is relevant to the question asked by asking the LLM to self evaluate." authors = [ {name = "Guardrails AI", email = "contact@guardrailsai.com"} @@ -10,6 +10,7 @@ readme = "README.md" requires-python = ">= 3.8.1" dependencies = [ "guardrails-ai>=0.4.0", + "guardrails-grhub-response_evaluator" ] [project.optional-dependencies]