Skip to content

Commit e5eec3a

Browse files
guptha23Chandra Sekhar Gupta Aravapalli
andauthored
updating the batch run for completeness in sample notebook. (#40226)
Co-authored-by: Chandra Sekhar Gupta Aravapalli <[email protected]>
1 parent 87c7d9a commit e5eec3a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sdk/evaluation/azure-ai-evaluation/samples/agent_evaluators/response_completeness.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
"outputs": [],
143143
"source": [
144144
"import json\n",
145+
"import pandas as pd\n",
145146
"\n",
146147
"data = [\n",
147148
" {\n",
@@ -158,10 +159,11 @@
158159
" }\n",
159160
"]\n",
160161
"\n",
161-
"file_path = \"response_completeness_data.json\"\n",
162+
"file_path = \"response_completeness_data.jsonl\"\n",
162163
"\n",
163-
"with open(file_path, \"w\") as file:\n",
164-
" json.dump(data, file)\n",
164+
"pd.DataFrame(data).to_json(\n",
165+
" file_path, orient=\"records\", lines=True\n",
166+
")\n",
165167
"\n",
166168
"from azure.ai.evaluation import evaluate\n",
167169
"\n",
@@ -177,7 +179,7 @@
177179
" }\n",
178180
")\n",
179181
"\n",
180-
"pprint(f'AI Foundary URL: {response.get(\"studio_url\")}')"
182+
"pprint(f'AI Foundry URL: {response.get(\"studio_url\")}')"
181183
]
182184
},
183185
{

0 commit comments

Comments
 (0)