You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/evaluation/azure-ai-evaluation/README.md
+95-2
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,95 @@ Output with a string that continues the conversation, responding to the latest m
139
139
{{ conversation_history }}
140
140
141
141
```
142
+
143
+
Query Response generaing prompty for gpt-4o with `json_schema` support
144
+
Use this file as an override.
145
+
```yaml
146
+
---
147
+
name: TaskSimulatorQueryResponseGPT4o
148
+
description: Gets queries and responses from a blob of text
149
+
model:
150
+
api: chat
151
+
parameters:
152
+
temperature: 0.0
153
+
top_p: 1.0
154
+
presence_penalty: 0
155
+
frequency_penalty: 0
156
+
response_format:
157
+
type: json_schema
158
+
json_schema:
159
+
name: QRJsonSchema
160
+
schema:
161
+
type: object
162
+
properties:
163
+
items:
164
+
type: array
165
+
items:
166
+
type: object
167
+
properties:
168
+
q:
169
+
type: string
170
+
r:
171
+
type: string
172
+
required:
173
+
- q
174
+
- r
175
+
176
+
inputs:
177
+
text:
178
+
type: string
179
+
num_queries:
180
+
type: integer
181
+
182
+
183
+
---
184
+
system:
185
+
You're an AI that helps in preparing a Question/Answer quiz from Text for "Who wants to be a millionaire" tv show
186
+
Both Questions and Answers MUST BE extracted from given Text
187
+
Frame Question in a way so that Answer is RELEVANT SHORT BITE-SIZED info from Text
188
+
RELEVANT info could be: NUMBER, DATE, STATISTIC, MONEY, NAME
189
+
A sentence should contribute multiple QnAs if it has more info in it
190
+
Answer must not be more than 5 words
191
+
Answer must be picked from Text as is
192
+
Question should be as descriptive as possible and must include as much context as possible from Text
193
+
Output must always have the provided number of QnAs
194
+
Output must be in JSON format.
195
+
Output must have {{num_queries}} objects in the format specified below. Any other count is unacceptable.
196
+
Text:
197
+
<|text_start|>
198
+
On January 24, 1984, former Apple CEO Steve Jobs introduced the first Macintosh. In late 2003, Apple had 2.06 percent of the desktop share in the United States.
199
+
Some years later, research firms IDC and Gartner reported that Apple's market share in the U.S. had increased to about 6%.
200
+
<|text_end|>
201
+
Output with 5 QnAs:
202
+
[
203
+
{
204
+
"q": "When did the former Apple CEO Steve Jobs introduced the first Macintosh?",
205
+
"r": "January 24, 1984"
206
+
},
207
+
{
208
+
"q": "Who was the former Apple CEO that introduced the first Macintosh on January 24, 1984?",
209
+
"r": "Steve Jobs"
210
+
},
211
+
{
212
+
"q": "What percent of the desktop share did Apple have in the United States in late 2003?",
213
+
"r": "2.06 percent"
214
+
},
215
+
{
216
+
"q": "What were the research firms that reported on Apple's market share in the U.S.?",
217
+
"r": "IDC and Gartner"
218
+
},
219
+
{
220
+
"q": "What was the percentage increase of Apple's market share in the U.S., as reported by research firms IDC and Gartner?",
0 commit comments