Skip to content

Setting data parameter type String in evaluate() - #201

Open
Maxim Salnikov (webmaxru) wants to merge 1 commit into
Azure-Samples:mainfrom
webmaxru:patch-1
Open

Setting data parameter type String in evaluate()#201
Maxim Salnikov (webmaxru) wants to merge 1 commit into
Azure-Samples:mainfrom
webmaxru:patch-1

Conversation

@webmaxru

Copy link
Copy Markdown

This pull request includes a minor change to the evaluate_chat_with_products function in the evaluate.py file. The change involves converting the data path to a string format to fix raise EvaluationException( azure.ai.evaluation._exceptions.EvaluationException: data parameter must be a string. error.

  • scenarios/rag/custom-rag-app/evaluate.py: Modified the data parameter in the evaluate function call to use str(Path(ASSET_PATH) / "chat_eval_data.jsonl") instead of Path(ASSET_PATH) / "chat_eval_data.jsonl".

This is a fix for the error `raise EvaluationException(
azure.ai.evaluation._exceptions.EvaluationException: data parameter must be a string.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant