Skip to content

Commit cdef17e

Browse files
Merge pull request #39 from Azure-Samples/chienyaunchang/pro_mode_generate_resource_flow_improvement
Refactor the flow of generate knowledge resources and add second sample for Pro mode
2 parents cb24dcd + 1e8ddbb commit cdef17e

File tree

11 files changed

+8056
-78
lines changed

11 files changed

+8056
-78
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"baseAnalyzerId": "prebuilt-documentAnalyzer",
3+
"mode": "pro",
4+
"processingLocation": "global",
5+
"fieldSchema": {
6+
"name": "InsuranceClaimsReview",
7+
"description": "Analyze documents for insurance claim approval strictly according to the provided insurance policy. Consider all aspects of the insurance claim documents, any potential discrepancies found among the documents, any claims that should be flagged for review, etc.",
8+
"fields": {
9+
"CarBrand": {
10+
"description": "Brand of the damaged vehicle.",
11+
"type": "string"
12+
},
13+
"CarColor": {
14+
"description": "Color of the damaged vehicle. Only use color name from 17 web colors. Use CamalCase naming convention.",
15+
"type": "string"
16+
},
17+
"CarModel": {
18+
"description": "Model of the damaged vehicle. Do not include brand name. Leave empty if not found.",
19+
"type": "string"
20+
},
21+
"LicensePlate": {
22+
"description": "License plate number of the damaged vehicle.",
23+
"type": "string"
24+
},
25+
"VIN": {
26+
"description": "VIN of the damaged vehicle. Leave empty if not found.",
27+
"type": "string"
28+
},
29+
"ReportingOfficer": {
30+
"description": "Name of the reporting officer for the incident.",
31+
"type": "string"
32+
},
33+
"LineItemCorroboration": {
34+
"type": "array",
35+
"description": "Validation of all of the line items on the claim, including parts, services, labors, materials, shipping and other costs and fees. When in doubt about adherence to the policy, mark as suspicious.",
36+
"items": {
37+
"$ref": "#/$defs/LineItemAnalysisEntry"
38+
}
39+
}
40+
},
41+
"definitions": {
42+
"LineItemAnalysisEntry": {
43+
"type": "object",
44+
"description": "Entry in the line item analysis table to analyze the pertinent information for the line item.",
45+
"properties": {
46+
"LineItemName": {
47+
"description": "Name of the line item in the claim.",
48+
"type": "string"
49+
},
50+
"IdentifiedVehiclePart": {
51+
"description": "The relevant associated vehicle part for this line item",
52+
"enum": [
53+
"BODY_TRIM",
54+
"DRIVER_SIDE_DRIVER_DOOR",
55+
"DRIVER_SIDE_DRIVER_HANDLE",
56+
"DRIVER_SIDE_FRONT_TIRE",
57+
"DRIVER_SIDE_FRONT_WHEEL",
58+
"DRIVER_SIDE_FUEL_CAP",
59+
"DRIVER_SIDE_PASSENGER_DOOR",
60+
"DRIVER_SIDE_PASSENGER_HANDLE",
61+
"DRIVER_SIDE_PASSENGER_WINDOW",
62+
"DRIVER_SIDE_REAR_HEADLAMP",
63+
"DRIVER_SIDE_REAR_TIRE",
64+
"DRIVER_SIDE_REAR_WHEEL",
65+
"DRIVER_SIDE_SIDE_WINDOW",
66+
"DRIVER_SIDE_WINDOW",
67+
"DRIVER_SIDE_WING_MIRROR",
68+
"FRONT_BONNET",
69+
"FRONT_BUMPER_LOWER",
70+
"FRONT_BUMPER_UPPER",
71+
"FRONT_DRIVER_SIDE_FOG_LIGHT",
72+
"FRONT_DRIVER_SIDE_HEADLAMP",
73+
"FRONT_GRILL",
74+
"FRONT_NUMBER_PLATE",
75+
"FRONT_PASSENGER_SIDE_FOG_LIGHT",
76+
"FRONT_PASSENGER_SIDE_HEADLAMP",
77+
"FRONT_WINDSHIELD",
78+
"PASSENGER_SIDE_DRIVER_DOOR",
79+
"PASSENGER_SIDE_DRIVER_HANDLE",
80+
"PASSENGER_SIDE_FRONT_TIRE",
81+
"PASSENGER_SIDE_FRONT_WHEEL",
82+
"PASSENGER_SIDE_PASSENGER_DOOR",
83+
"PASSENGER_SIDE_PASSENGER_HANDLE",
84+
"PASSENGER_SIDE_PASSENGER_WINDOW",
85+
"PASSENGER_SIDE_REAR_HEADLAMP",
86+
"PASSENGER_SIDE_REAR_TIRE",
87+
"PASSENGER_SIDE_REAR_WHEEL",
88+
"PASSENGER_SIDE_SIDE_WINDOW",
89+
"PASSENGER_SIDE_WINDOW",
90+
"PASSENGER_SIDE_WING_MIRROR",
91+
"REAR_BUMPER",
92+
"REAR_NUMBER_PLATE",
93+
"REAR_TRUNK",
94+
"REAR_WINDSHIELD",
95+
"ROOF_PANEL",
96+
"OTHER"
97+
],
98+
"type": "string"
99+
},
100+
"Cost": {
101+
"description": "The cost of this line item on the claim.",
102+
"type": "number"
103+
},
104+
"Evidence": {
105+
"description": "The evidence for this line item entry, a list of the document with analyzed evidence supporting the claim formatted as <document name>/<evidence>. One of the insurance policy documents must be one of the documents.",
106+
"items": {
107+
"type": "string"
108+
},
109+
"type": "array"
110+
},
111+
"ClaimStatus": {
112+
"type": "string",
113+
"description": "Determined by confidence in whether the claim should be approved based on the evidence. Item should be compliant to insurance policy and required for repairing the vehicle. Only use 'confirmed' for items explicitly approvable according to the policy. If unsure, use 'suspicious'.",
114+
"enum": [
115+
"confirmed",
116+
"suspicious",
117+
"unconfirmed"
118+
],
119+
"enumDescriptions": {
120+
"confirmed": "Completely and explicitly corroborated by the policy.",
121+
"suspicious": "Only partially verified, questionable, or otherwise uncertain evidence to approve automatically. Requires human review.",
122+
"unconfirmed": "Explicitly not approved by the policy."
123+
}
124+
}
125+
}
126+
}
127+
}
128+
}
129+
}

0 commit comments

Comments
 (0)