diff --git a/sdk/ai/azure-ai-projects/samples/evaluations/sample_eval_catalog_code_based_evaluators.py b/sdk/ai/azure-ai-projects/samples/evaluations/sample_eval_catalog_code_based_evaluators.py index f1ffe187b7f0..36aa0f0108c8 100644 --- a/sdk/ai/azure-ai-projects/samples/evaluations/sample_eval_catalog_code_based_evaluators.py +++ b/sdk/ai/azure-ai-projects/samples/evaluations/sample_eval_catalog_code_based_evaluators.py @@ -63,7 +63,7 @@ "init_parameters": { "required": ["deployment_name", "pass_threshold"], "type": "object", - "properties": {"deployment_name": {"type": "string"}, "pass_threshold": {"type": "string"}}, + "properties": {"deployment_name": {"type": "string"}, "pass_threshold": {"type": "number"}}, }, "metrics": { "result": { @@ -116,6 +116,7 @@ type="azure_ai_evaluator", name="my_custom_evaluator_code", evaluator_name="my_custom_evaluator_code", + data_mapping={"item": "{{item}}"}, initialization_parameters={ "deployment_name": f"{model_deployment_name}", "pass_threshold": 0.5,