From 0380dbe877fbd15692999391fd56b9af34c7f0d0 Mon Sep 17 00:00:00 2001 From: Maxim Salnikov Date: Tue, 18 Feb 2025 20:46:11 +0100 Subject: [PATCH] Setting data parameter type String in evaluate() This is a fix for the error `raise EvaluationException( azure.ai.evaluation._exceptions.EvaluationException: data parameter must be a string.` --- scenarios/rag/custom-rag-app/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios/rag/custom-rag-app/evaluate.py b/scenarios/rag/custom-rag-app/evaluate.py index 9a64007c..b251036f 100644 --- a/scenarios/rag/custom-rag-app/evaluate.py +++ b/scenarios/rag/custom-rag-app/evaluate.py @@ -58,7 +58,7 @@ def evaluate_chat_with_products(query): # run evaluation with a dataset and target function, log to the project result = evaluate( - data=Path(ASSET_PATH) / "chat_eval_data.jsonl", + data=str(Path(ASSET_PATH) / "chat_eval_data.jsonl"), target=evaluate_chat_with_products, evaluation_name="evaluate_chat_with_products", evaluators={