Skip to content

Commit 5393dd5

Browse files
author
Daniel Lorch
committed
chore: add classes configuration for step-by-step example
1 parent 1c1cbab commit 5393dd5

File tree

1 file changed

+119
-0
lines changed
  • plugins/dynamic-few-shot-lambda/notebooks/config

1 file changed

+119
-0
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
classes:
2+
- $schema: https://json-schema.org/draft/2020-12/schema
3+
$defs:
4+
LineItem:
5+
type: object
6+
properties:
7+
LineItemEndDate:
8+
default: 'null'
9+
x-aws-idp-confidence-threshold: '0.8'
10+
examples:
11+
- 11/06/2012
12+
data_type: string
13+
format: date
14+
description: End date for each line item (typically in MM/DD/YY format)
15+
type: string
16+
x-aws-idp-evaluation-method: LEVENSHTEIN
17+
x-aws-idp-evaluation-threshold: '0.7'
18+
LineItemDescription:
19+
data_type: string
20+
description: Description of the line item
21+
type: string
22+
x-aws-idp-evaluation-method: LEVENSHTEIN
23+
x-aws-idp-evaluation-threshold: '0.7'
24+
LineItemStartDate:
25+
default: 'null'
26+
x-aws-idp-confidence-threshold: '0.8'
27+
examples:
28+
- 11/06/2012
29+
data_type: string
30+
format: date
31+
description: Start date for each line item (typically in MM/DD/YY format)
32+
type: string
33+
x-aws-idp-evaluation-method: LEVENSHTEIN
34+
x-aws-idp-evaluation-threshold: '0.7'
35+
LineItemDays:
36+
maxItems: '7'
37+
x-aws-idp-confidence-threshold: '0.8'
38+
uniqueItems: true
39+
description: List of days of the week for the line item
40+
type: array
41+
items:
42+
type: string
43+
data_type: string
44+
enum:
45+
- M
46+
- T
47+
- W
48+
- Th
49+
- F
50+
- S
51+
- Su
52+
x-aws-idp-evaluation-method: EXACT
53+
x-aws-idp-evaluation-threshold: '0.7'
54+
LineItemRate:
55+
data_type: string
56+
description: Rate of the line item
57+
x-aws-idp-confidence-threshold: '0.8'
58+
type: number
59+
x-aws-idp-evaluation-method: NUMERIC_EXACT
60+
description: Invoice document
61+
type: object
62+
x-aws-idp-document-type: Invoice
63+
properties:
64+
LineItems:
65+
type: array
66+
description: List of line items in the invoice
67+
items:
68+
$ref: '#/$defs/LineItem'
69+
Agency:
70+
x-aws-idp-confidence-threshold: '0.8'
71+
data_type: string
72+
description: The advertising agency or station. May be labelled Agency, or Station.
73+
x-aws-idp-evaluation-weight: '2'
74+
type: string
75+
x-aws-idp-evaluation-method: LEVENSHTEIN
76+
x-aws-idp-evaluation-threshold: '0.7'
77+
Advertiser:
78+
x-aws-idp-confidence-threshold: '0.8'
79+
data_type: string
80+
description: The political advertiser or campaign purchasing the broadcast time
81+
x-aws-idp-evaluation-weight: '2'
82+
type: string
83+
x-aws-idp-evaluation-method: FUZZY
84+
x-aws-idp-evaluation-threshold: '0.8'
85+
GrossTotal:
86+
data_type: string
87+
description: >-
88+
The total gross amount for all line items before any discounts or
89+
adjustments
90+
x-aws-idp-evaluation-weight: '2'
91+
x-aws-idp-confidence-threshold: '0.8'
92+
type: number
93+
x-aws-idp-evaluation-method: NUMERIC_EXACT
94+
PaymentTerms:
95+
examples:
96+
- Net 30
97+
data_type: string
98+
description: Payment terms
99+
x-aws-idp-evaluation-weight: '0.2'
100+
type: string
101+
x-aws-idp-evaluation-method: FUZZY
102+
x-aws-idp-evaluation-threshold: '0.7'
103+
AgencyCommission:
104+
data_type: string
105+
description: Agency commission
106+
x-aws-idp-evaluation-weight: '0.2'
107+
x-aws-idp-confidence-threshold: '0.8'
108+
type: number
109+
x-aws-idp-evaluation-method: NUMERIC_EXACT
110+
NetAmountDue:
111+
data_type: string
112+
description: >-
113+
The final net amount due after any discounts or adjustments have been
114+
applied (stored as string with commas)
115+
x-aws-idp-evaluation-weight: '2'
116+
x-aws-idp-confidence-threshold: '0.8'
117+
type: number
118+
x-aws-idp-evaluation-method: NUMERIC_EXACT
119+
$id: Invoice

0 commit comments

Comments
 (0)