From 0519cc4f3b38d2190b22308452ee26219c030571 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Wed, 30 Oct 2024 15:35:54 -0700 Subject: [PATCH 1/2] version constraint, bump version --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f975b8b..3114ea9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "qa_relevance_llm_eval" -version = "0.0.1" +version = "0.0.2" 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,7 +10,7 @@ readme = "README.md" requires-python = ">= 3.8.1" dependencies = [ "guardrails-ai>=0.4.0", - "guardrails-grhub-response_evaluator" + "guardrails-grhub-response_evaluator<1.0.0" ] [project.optional-dependencies] From 6cdc4e5abc484b94168fac205d52ed2b1ff9c655 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Wed, 30 Oct 2024 15:36:03 -0700 Subject: [PATCH 2/2] updated dep validator import --- validator/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/main.py b/validator/main.py index 26d31e8..29beea0 100644 --- a/validator/main.py +++ b/validator/main.py @@ -1,6 +1,6 @@ from typing import Any, Callable, Dict, Optional -from guardrails.hub.guardrails.response_evaluator.validator import ResponseEvaluator +from guardrails.hub import ResponseEvaluator from guardrails.validator_base import ( ValidationResult, register_validator,