diff --git a/evals/evaluation/deepeval/README.md b/evals/evaluation/deepeval/README.md index 2441f441..96d5c977 100644 --- a/evals/evaluation/deepeval/README.md +++ b/evals/evaluation/deepeval/README.md @@ -30,15 +30,17 @@ from deepeval import assert_test from deepeval.metrics import AnswerRelevancyMetric from deepeval.test_case import LLMTestCase + def test_case(): from evals.evaluation.deepeval.models.endpoint_models import TGIEndpointModel + endpoint = TGIEndpointModel(model="http://localhost:{your_llm_port}/generate") answer_relevancy_metric = AnswerRelevancyMetric(threshold=0.5, model=endpoint) test_case = LLMTestCase( input="What if these shoes don't fit?", # Replace this with the actual output from your LLM application actual_output="We offer a 30-day full refund at no extra costs.", - retrieval_context=["All customers are eligible for a 30 day full refund at no extra costs."] + retrieval_context=["All customers are eligible for a 30 day full refund at no extra costs."], ) assert_test(test_case, [answer_relevancy_metric]) ```