Commit ee191b9
authored
Sample Code Syntax Error in azure-openai-graders.md
error on model_config. The way os.environ , wrong and inconsistant, lead to error.
azure_endpoint=os.environ["AZURE_ENDPOINT"],
api_key=os.environ.get["AZURE_API_KEY"],
azure_deployment=os.environ.get("AZURE_DEPLOYMENT_NAME"),
api_version=os.environ.get("AZURE_API_VERSION"),
another one is presume run in notebook, it print out the result, but it's using the accessing the wrong variable.
sim_grader_evaluation = evaluate(
data=data_file_name,
evaluators={
"similarity": sim_grader
},
)
evaluation <== wrong
---
lastly, the data.jsonl mentioned is a JSONL, but given example is not a JSONL format.1 parent df5a255 commit ee191b9
File tree
1 file changed
+3
-3
lines changed- articles/ai-foundry/concepts/evaluation-evaluators
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments