-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathcontent_understanding_schemas.json
518 lines (518 loc) · 21.8 KB
/
content_understanding_schemas.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
{
"document": {
"general_document_extraction": {
"name": "General document extraction",
"description": "Extracts general information from the document.",
"scenario": "document",
"config": {
"returnDetails": true
},
"fieldSchema": {
"name": "DocumentSummarizer",
"descriptions": "Extract summary and key information from a document",
"fields": {
"DocumentTitle": {
"type": "string",
"method": "extract",
"description": "Title of the Document"
},
"AuthorCompany": {
"type": "string",
"method": "extract",
"description": "Name of the company that authored the document."
},
"DocumentDate": {
"type": "string",
"method": "extract",
"description": "Date that the document was created or published."
}
}
}
},
"business_invoice_document": {
"name": "Invoice data extraction",
"description": "Extracts detailed information from a business invoice",
"scenario": "document",
"config": {
"returnDetails": true
},
"fieldSchema": {
"name": "BusinessInvoiceExtraction",
"descriptions": "Extracted fields and content from a business invoice",
"fields": {
"BusinessNumber": {
"type": "string",
"method": "extract",
"description": "Business number of the company"
},
"CompanyName": {
"type": "string",
"method": "extract",
"description": "Name of the company"
},
"CompanyAddress": {
"type": "string",
"method": "extract",
"description": "Address of the company"
},
"InvoiceNumber": {
"type": "string",
"method": "extract",
"description": "Invoice number"
},
"DateOfInvoiceIssue": {
"type": "string",
"method": "extract",
"description": "Date when the invoice was issued"
},
"BillItems": {
"type": "array",
"method": "extract",
"items": {
"type": "object",
"properties": {
"Description": {
"type": "string",
"method": "extract",
"description": "Description of the billed item"
},
"Quantity": {
"type": "number",
"method": "extract",
"description": "Quantity of the billed item"
},
"Rate": {
"type": "number",
"method": "extract",
"description": "Rate of the billed item"
},
"Amount": {
"type": "number",
"method": "extract",
"description": "Amount of the billed item"
}
}
}
},
"Subtotal": {
"type": "number",
"method": "extract",
"description": "Subtotal amount of the invoice"
},
"TaxAmount": {
"type": "number",
"method": "extract",
"description": "Tax amount of the invoice"
},
"TotalBill": {
"type": "number",
"method": "extract",
"description": "Total bill amount of the invoice"
}
}
}
}
},
"audio": {
"call_center_analysis_audio": {
"name": "Call center post-call analysis",
"description": "Post call analytics for call center",
"scenario": "callCenter",
"config": {
"returnDetails": false,
"locales": [
"en-US"
]
},
"fieldSchema": {
"name": "CallCenterConversationAnalysis",
"descriptions": "Summary, sentiment, and more analyses from a call center conversation",
"fields": {
"Summary": {
"type": "string",
"method": "generate",
"description": "A one-paragraph summary of the call"
},
"Topics": {
"type": "array",
"method": "generate",
"description": "Top 5 topics mentioned",
"items": {
"type": "string"
}
},
"Companies": {
"type": "array",
"method": "generate",
"description": "List of companies mentioned",
"items": {
"type": "string"
}
},
"People": {
"type": "array",
"method": "generate",
"description": "List of people mentioned",
"items": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Person's name"
},
"Role": {
"type": "string",
"description": "Person's title/role"
}
}
}
},
"Sentiment": {
"type": "string",
"method": "classify",
"description": "Overall sentiment",
"enum": [
"Positive",
"Neutral",
"Negative"
]
},
"Categories": {
"type": "array",
"method": "classify",
"description": "List of relevant categories",
"items": {
"type": "string",
"enum": [
"Agriculture",
"Business",
"Finance",
"Health",
"Insurance",
"Mining",
"Pharmaceutical",
"Retail",
"Technology",
"Transportation"
]
}
}
}
}
},
"insurance_call_analysis_audio": {
"name": "Car insurance call processing",
"description": "Extracts detailed information from an insurance call relating to a car accident",
"scenario": "callCenter",
"config": {
"returnDetails": true,
"locales": [
"en-US"
]
},
"fieldSchema": {
"name": "InsuranceCallAnalysis",
"descriptions": "Extracted fields and content from an insurance call relating to a car accident",
"fields": {
"DescriptionOfIncident": {
"type": "string",
"method": "generate",
"description": "Description of the incident"
},
"DateOfIncident": {
"type": "string",
"method": "generate",
"description": "Date that the incident occurred"
},
"VehicleMake": {
"type": "string",
"method": "generate",
"description": "Make of the vehicle in the incident"
},
"VehicleYear": {
"type": "string",
"method": "generate",
"description": "Year of the vehicle in the incident"
},
"VehicleModel": {
"type": "string",
"method": "generate",
"description": "Model of the vehicle in the incident"
},
"VehicleColor": {
"type": "string",
"method": "generate",
"description": "Color of the vehicle in the incident"
},
"DriverName": {
"type": "string",
"method": "generate",
"description": "Name of the driver"
},
"AnotherVehicleInvolved": {
"type": "string",
"method": "classify",
"description": "Whether another vehicle was involved",
"enum": [
"true",
"false"
]
},
"OtherVehicleDetails": {
"type": "string",
"method": "generate",
"description": "Details of the other vehicle (if available)"
},
"FaultInIncident": {
"type": "string",
"method": "generate",
"description": "Who was at fault in the incident (driver or other party)"
}
}
}
}
},
"image": {
"chart_diagram_understanding_image": {
"name": "Chart & diagram extraction & summarization",
"description": "Extract detailed structured information from charts and diagrams.",
"scenario": "image",
"config": {
"returnDetails": true
},
"fieldSchema": {
"name": "ChartsAndDiagrams",
"descriptions": "Structured information from charts and diagrams.",
"fields": {
"Title": {
"type": "string",
"method": "generate",
"description": "Verbatim title of the chart."
},
"ChartType": {
"type": "string",
"description": "The type of chart.",
"kind": "classify",
"enum": [
"area",
"bar",
"box",
"bubble",
"candlestick",
"funnel",
"heatmap",
"histogram",
"line",
"pie",
"radar",
"rings",
"rose",
"treemap"
],
"enumDescriptions": {
"histogram": "Continuous values on the x-axis, which distinguishes it from bar.",
"rose": "In contrast to pie charts, the sectors are of equal angles and differ in how far each sector extends from the center of the circle."
}
},
"TopicKeywords": {
"type": "array",
"method": "generate",
"description": "Relevant topics associated with the chart, used for tagging.",
"items": {
"type": "string",
"examples": [
"Business and finance",
"Arts and culture",
"Education and academics"
]
}
},
"DetailedDescription": {
"type": "string",
"method": "generate",
"description": "Detailed description of the chart or diagram, not leaving out any key information. Include numbers, trends, and other details."
},
"Summary": {
"type": "string",
"method": "generate",
"description": "Detailed summary of the chart, including highlights and takeaways."
},
"MarkdownDataTable": {
"type": "string",
"method": "generate",
"description": "Underlying data of the chart in tabular markdown format. Give markdown output with valid syntax and accurate numbers, and fill any uncertain values with empty cells. If not applicable, output an empty string."
},
"AxisTitles": {
"type": "object",
"method": "generate",
"description": "Titles of the x and y axes.",
"properties": {
"xAxisTitle": {
"type": "string"
},
"yAxisTitle": {
"type": "string"
}
}
},
"FootnotesAndAnnotations": {
"type": "string",
"method": "generate",
"description": "All footnotes and textual annotations in the chart or diagram."
}
}
}
},
"vehicle_damage_analysis_image": {
"name": "Vehicle damage analysis",
"description": "Extracts detailed information from images of vehicle damage",
"scenario": "image",
"config": {
"returnDetails": true
},
"fieldSchema": {
"name": "VehicleDamageImageAnalysis",
"descriptions": "Extracted fields and content from images of vehicle damage",
"fields": {
"DamageSummary": {
"type": "string",
"method": "generate",
"description": "Summary of the damage contained in the image."
},
"DamageLocations": {
"type": "array",
"method": "classify",
"description": "A list of locations on the vehicle which contain damage.",
"items": {
"type": "string",
"enum": [
"Front left",
"Front right",
"Rear left",
"Rear right",
"Front",
"Rear",
"Left side",
"Right side",
"Roof",
"Windscreen",
"Windows"
]
}
},
"SeverityRating": {
"type": "string",
"method": "classify",
"description": "Severity rating of the damage",
"enum": [
"Low",
"Medium",
"High"
]
},
"RequiredRepairSummary": {
"type": "string",
"method": "generate",
"description": "Summary of the required repairs to be performed. Summarize the required parts and expected number of hours required to repair the damage."
},
"RepairCostEstimateUSD": {
"type": "number",
"method": "generate",
"description": "Estimate of the cost to repair the damage (parts and labour), in US Dollars."
}
}
}
}
},
"video": {
"content_understanding_video": {
"name": "Video segment summarization",
"description": "Generate a summary of each segment of a video.",
"scenario": "videoShot",
"config": {
"returnDetails": true,
"locales": [
"en-US",
"es-ES",
"es-MX",
"fr-FR",
"hi-IN",
"it-IT",
"ja-JP",
"ko-KR",
"pt-BR",
"zh-CN"
],
"enableFace": false
},
"fieldSchema": {
"name": "Content Understanding",
"descriptions": "Generate content understanding from video.",
"fields": {
"segmentDescription": {
"type": "string",
"description": "Detailed summary of the video segment, focusing on people, places, and actions taking place."
}
}
}
},
"dash_cam_analysis_video": {
"name": "Dash cam accident video analysis",
"description": "Extracts detailed information from dash cam footage",
"scenario": "videoShot",
"config": {
"returnDetails": true,
"locales": [
"en-US",
"es-ES",
"es-MX",
"fr-FR",
"hi-IN",
"it-IT",
"ja-JP",
"ko-KR",
"pt-BR",
"zh-CN"
],
"enableFace": false
},
"fieldSchema": {
"name": "DashCamVideoAnalysis",
"descriptions": "Extracted fields and content from dash cam footage",
"fields": {
"SceneDescription": {
"type": "string",
"description": "Detailed description of the scene, describing the cars involved and how the cars are moving through the video. Include information about how and when any vehicles involved in an incident may behave or change direction and how that contributes to the incident."
},
"NumberOfVehiclesInFrame": {
"type": "number",
"description": "Number of vehicles in the scene"
},
"ColorOfDamagedCar": {
"type": "string",
"description": "Color of the damaged car"
},
"VehicleAtFault": {
"type": "string",
"description": "Description of the car at fault, including vehicle type, color and any other relevant details"
},
"VehiclesInvolved": {
"type": "array",
"description": "A description of each of the vehicles involved in the incident, including vehicle type, color and any other relevant details",
"items": {
"type": "string"
}
},
"DescriptionOfImpact": {
"type": "string",
"description": "Description of the impact/cause of damage"
},
"DescriptionOfDamage": {
"type": "string",
"description": "Description of the resulting damage that was caused"
}
}
}
}
}
}