data-science-document-ai 1.56.1__py3-none-any.whl → 1.58.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {data_science_document_ai-1.56.1.dist-info → data_science_document_ai-1.58.0.dist-info}/METADATA +1 -1
- {data_science_document_ai-1.56.1.dist-info → data_science_document_ai-1.58.0.dist-info}/RECORD +23 -23
- src/constants.py +8 -26
- src/docai_processor_config.yaml +0 -13
- src/pdf_processing.py +29 -27
- src/postprocessing/common.py +35 -0
- src/prompts/library/bookingConfirmation/evergreen/placeholders.json +135 -21
- src/prompts/library/bookingConfirmation/evergreen/prompt.txt +21 -17
- src/prompts/library/bookingConfirmation/hapag-lloyd/placeholders.json +136 -22
- src/prompts/library/bookingConfirmation/hapag-lloyd/prompt.txt +54 -58
- src/prompts/library/bookingConfirmation/maersk/placeholders.json +135 -21
- src/prompts/library/bookingConfirmation/maersk/prompt.txt +10 -1
- src/prompts/library/bookingConfirmation/msc/placeholders.json +135 -21
- src/prompts/library/bookingConfirmation/msc/prompt.txt +10 -1
- src/prompts/library/bookingConfirmation/oocl/placeholders.json +149 -21
- src/prompts/library/bookingConfirmation/oocl/prompt.txt +11 -3
- src/prompts/library/bookingConfirmation/other/placeholders.json +149 -21
- src/prompts/library/bookingConfirmation/other/prompt.txt +56 -57
- src/prompts/library/bookingConfirmation/yangming/placeholders.json +149 -21
- src/prompts/library/bookingConfirmation/yangming/prompt.txt +11 -1
- src/setup.py +11 -9
- src/utils.py +6 -2
- {data_science_document_ai-1.56.1.dist-info → data_science_document_ai-1.58.0.dist-info}/WHEEL +0 -0
|
@@ -1,32 +1,146 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "OBJECT",
|
|
3
3
|
"properties": {
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
"bookingNumber": {
|
|
5
|
+
"type": "STRING",
|
|
6
|
+
"nullable": true,
|
|
7
|
+
"description": "A unique identifier assigned to the shipment booking, used for tracking and reference. They are often referred to as 'Booking No.', 'Booking Reference', 'Our Reference', or 'Order Ref'."
|
|
8
|
+
},
|
|
9
|
+
"contractNumber": {
|
|
10
|
+
"type": "STRING",
|
|
11
|
+
"nullable": true,
|
|
12
|
+
"description": "It's a contract number between the carrier and Forto Logistics SE & Co KG."
|
|
13
|
+
},
|
|
14
|
+
"pickUpTerminalCode": {
|
|
15
|
+
"type": "STRING",
|
|
16
|
+
"nullable": true,
|
|
17
|
+
"description": "The specific terminal for cargo pickup during the import shipment."
|
|
18
|
+
},
|
|
19
|
+
"gateInTerminalCode": {
|
|
20
|
+
"type": "STRING",
|
|
21
|
+
"nullable": true,
|
|
22
|
+
"description": "The specific terminal where cargo is gated in especially Export terminal delivery address. E.g., Export terminal delivery address, Export terminal location, or Export terminal name."
|
|
23
|
+
},
|
|
24
|
+
"performaDate": {
|
|
25
|
+
"type": "STRING",
|
|
26
|
+
"nullable": true,
|
|
27
|
+
"description": "The date considered to apply the rates and charges specified in the booking confirmation"
|
|
28
|
+
},
|
|
29
|
+
"cyCutOff": {
|
|
30
|
+
"type": "STRING",
|
|
31
|
+
"nullable": true,
|
|
32
|
+
"description": "The datetime by which the cargo to be delivered to the Container Yard. It can be found with keys FCL delivery cut-off, FCL DG delivery cut-off, CY CUT OFF, CY Closing."
|
|
33
|
+
},
|
|
34
|
+
"gateInReference": {
|
|
35
|
+
"type": "STRING",
|
|
36
|
+
"nullable": true,
|
|
37
|
+
"description": "A reference code for cargo entering the terminal to drop the loaded cargo for Export. Sometimes it can be 'Our Reference'."
|
|
38
|
+
},
|
|
39
|
+
"mblNumber": {
|
|
40
|
+
"type": "STRING",
|
|
41
|
+
"nullable": true,
|
|
42
|
+
"description": "Bill of Lading number (B/L NO.), a document issued by the carrier."
|
|
43
|
+
},
|
|
44
|
+
"pickUpReference": {
|
|
45
|
+
"type": "STRING",
|
|
46
|
+
"nullable": true,
|
|
47
|
+
"description": "A reference code for cargo pickup during the import shipment. Sometimes it can be 'Our Reference'."
|
|
48
|
+
},
|
|
49
|
+
"siCutOff": {
|
|
50
|
+
"type": "STRING",
|
|
51
|
+
"nullable": true,
|
|
52
|
+
"description": "The deadline datetime for submitting the Shipping Instructions (SI) to the carrier. It can be found with keys Shipping Instruction Closing."
|
|
53
|
+
},
|
|
54
|
+
"vgmCutOff": {
|
|
55
|
+
"type": "STRING",
|
|
56
|
+
"nullable": true,
|
|
57
|
+
"description": "The deadline datetime for submitting the Verified Gross Mass (VGM) to the carrier. It can be found with keys VGM DEADLINE, VGM DUE, VGM CUT OFF."
|
|
58
|
+
},
|
|
59
|
+
"containers": {
|
|
60
|
+
"type": "ARRAY",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "OBJECT",
|
|
63
|
+
"properties": {
|
|
64
|
+
"containerType": {
|
|
65
|
+
"type": "STRING",
|
|
66
|
+
"nullable": true,
|
|
67
|
+
"description": "The size / type of the container, such as 20ft, 40ft, 40HC, 20DC etc under Type/Size column."
|
|
68
|
+
},
|
|
69
|
+
"pickUpDepotCode": {
|
|
70
|
+
"type": "STRING",
|
|
71
|
+
"nullable": true,
|
|
72
|
+
"description": "The depot code where the empty container will be picked up. It is identified as Empty Pick Up Depot or Export Empty Pick Up Depot(s)."
|
|
73
|
+
},
|
|
74
|
+
"dropOffDepotCode": {
|
|
75
|
+
"type": "STRING",
|
|
76
|
+
"nullable": true,
|
|
77
|
+
"description": "The depot code where the empty container will be dropped off."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": ["containerType", "pickupDepotCode", "dropoffDepotCode"]
|
|
82
|
+
},
|
|
14
83
|
"transportLegs": {
|
|
15
84
|
"type": "ARRAY",
|
|
16
85
|
"items": {
|
|
17
86
|
"type": "OBJECT",
|
|
18
87
|
"properties": {
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
88
|
+
"eta": {
|
|
89
|
+
"type": "STRING",
|
|
90
|
+
"nullable": true,
|
|
91
|
+
"description": "Estimated Time of Arrival (ETA) is the expected date when the shipment will arrive at its destination."
|
|
92
|
+
},
|
|
93
|
+
"etd": {
|
|
94
|
+
"type": "STRING",
|
|
95
|
+
"nullable": true,
|
|
96
|
+
"description": "Estimated Time of Departure (ETD) is the expected date when the shipment will leave the origin port."
|
|
97
|
+
},
|
|
98
|
+
"imoNumber": {
|
|
99
|
+
"type": "STRING",
|
|
100
|
+
"nullable": true,
|
|
101
|
+
"description": "The International Maritime Organization number for a specific leg. It can be found as IMO No, IMO number."
|
|
102
|
+
},
|
|
103
|
+
"portOfDischarge": {
|
|
104
|
+
"type": "STRING",
|
|
105
|
+
"nullable": true,
|
|
106
|
+
"description": "The port where the goods are discharged from the vessel. This is the destination port for the shipment. It can be found at POD, Port of Discharge, To, Discharge Port"
|
|
107
|
+
},
|
|
108
|
+
"portOfLoading": {
|
|
109
|
+
"type": "STRING",
|
|
110
|
+
"nullable": true,
|
|
111
|
+
"description": "The port where the goods are loaded onto the vessel. This is the origin port for the shipment. It can be found at POL, Port of Loading, From, Load Port"
|
|
112
|
+
},
|
|
113
|
+
"vesselName": {
|
|
114
|
+
"type": "STRING",
|
|
115
|
+
"nullable": true,
|
|
116
|
+
"description": "The name of the vessel carrying the shipment. It can be found at vessel, INTENDED VESSEL/VOYAGE"
|
|
117
|
+
},
|
|
118
|
+
"voyage": {
|
|
119
|
+
"type": "STRING",
|
|
120
|
+
"nullable": true,
|
|
121
|
+
"description": "The journey or route taken by the vessel for a specific leg. It can be found at Voy. no, INTENDED VESSEL/VOYAGE"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"eta",
|
|
127
|
+
"etd",
|
|
128
|
+
"portOfDischarge",
|
|
129
|
+
"portOfLoading",
|
|
130
|
+
"vesselName",
|
|
131
|
+
"voyage"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"carrierAddress": {
|
|
135
|
+
"type": "STRING",
|
|
136
|
+
"nullable": true,
|
|
137
|
+
"description": "The address of the carrier who provides service and issued the document. It can be from Germany, Poland, Italy, Vietnam, China, etc."
|
|
138
|
+
},
|
|
139
|
+
"carrierName": {
|
|
140
|
+
"type": "STRING",
|
|
141
|
+
"nullable": true,
|
|
142
|
+
"description": "The name of the carrier who issued the document e,g, Hapag-Lloyd."
|
|
29
143
|
}
|
|
30
144
|
},
|
|
31
|
-
"required": []
|
|
32
|
-
}
|
|
145
|
+
"required": ["bookingNumber", "transportLegs", "containers", "cyCutOff", "vgmCutOff", "siCutOff"]
|
|
146
|
+
}
|
|
@@ -1,65 +1,61 @@
|
|
|
1
|
-
You are
|
|
1
|
+
<PERSONA> You are an efficient document entity data extraction specialist working for a Freight Forwarding company. <PERSONA>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
cyCutOff: The deadline for cargo to be delivered to the Container Yard.
|
|
5
|
-
gateInReference: A reference code for cargo entering the terminal.
|
|
6
|
-
gateInTerminal: The specific terminal where cargo is gated in.
|
|
7
|
-
mblNumber: The Master Bill of Lading number.
|
|
8
|
-
pickUpReference: A reference code for cargo pickup.
|
|
9
|
-
pickUpTerminal: The specific terminal for cargo pickup.
|
|
10
|
-
siCutOff: The deadline for submitting shipping instructions.
|
|
11
|
-
vgmCutOff: The deadline for submitting the Verified Gross Mass of the cargo.
|
|
12
|
-
transportLegs:
|
|
13
|
-
eta: The estimated time of arrival for a specific leg.
|
|
14
|
-
etd: The estimated time of departure for a specific leg.
|
|
15
|
-
imoNumber: The International Maritime Organization number for a specific leg.
|
|
16
|
-
portOfDischarge: The port where cargo is unloaded for a specific leg.
|
|
17
|
-
portOfLoading: The port where cargo is loaded for a specific leg.
|
|
18
|
-
vesselName: The name of the vessel for a specific leg.
|
|
19
|
-
voyage: The journey or route taken by the vessel for a specific leg.
|
|
3
|
+
<TASK> Your task is to extract data from Booking Confirmation documents as per the given response schema structure. <TASK>
|
|
20
4
|
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
<CONTEXT>
|
|
6
|
+
The Freight Forwarding company receives Booking Confirmation from Hapag-Lloyd Carrier (Shipping Lines) partners.
|
|
7
|
+
These Booking Confirmations contain various details related to booking, container pick up and drop off depot details, vessel details, as well as other transport Legs data.
|
|
8
|
+
They may be written in different languages such as English, German, Vietnamese, Chinese, and other European languages, and can appear in a variety of formats and layouts.
|
|
9
|
+
Your role is to accurately extract specific entities from these Booking Confirmations to support efficient processing and accurate record-keeping.
|
|
23
10
|
|
|
24
|
-
Keywords for datapoints:
|
|
25
|
-
- bookingNumber: Our Reference
|
|
26
|
-
- cyCutOff: FCL delivery cut-off
|
|
27
|
-
- gateInReference: Our Reference
|
|
28
|
-
- gateInTerminal: Export terminal delivery address
|
|
29
|
-
- mblNumber: BL/SWB No(s).
|
|
30
|
-
- pickUpReference: Export door positioning address(es)
|
|
31
|
-
- siCutOff: shipping instruction closing
|
|
32
|
-
- vgmCutOff: VGM cut-off
|
|
33
|
-
- eta: eta, ETA
|
|
34
|
-
- etd: etd, ETD
|
|
35
|
-
- imoNumber: IMO No, IMO number
|
|
36
|
-
- portOfDischarge: to
|
|
37
|
-
- portOfLoading: from
|
|
38
|
-
- vesselName: vessel
|
|
39
|
-
- voyage: Voy. no
|
|
40
11
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
To provide context on the journey of a containers for both Export and Import shipments,
|
|
13
|
+
For Export shipment: An empty container is picked up from a depot (pickupDepotCode) using a pickUpReference and goods loaded into it at a warehouse. Then the loaded container / cargo is transported back to a Container Yard or gateInTerminal before the cyCutOff date for further shipping processes.
|
|
14
|
+
For Import Shipment: The loaded container / cargo arrives at a port of discharge then picked up at pickUpTerminal using pickUpReference. After delivery, an empty container is returned to a depot (dropOffDepotCode).
|
|
15
|
+
<CONTEXT>
|
|
44
16
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
17
|
+
<INSTRUCTIONS>
|
|
18
|
+
- Populate fields as defined in the response schema.
|
|
19
|
+
- Use the data field description to understand the context of the data.
|
|
20
|
+
|
|
21
|
+
- gateInTerminal: The specific terminal where cargo is gated in. It can be found as Export terminal delivery address, PORT OF LOADING (after the slash '/').
|
|
22
|
+
- gateInReference: A reference code for cargo entering the terminal. If not mentioned explicitly and gateInTerminal is extracted, then use bookingNumber as gateInReference.
|
|
23
|
+
- pickUpTerminal: The specific terminal for cargo pickup. It can be found as Import pick up address(es), PORT OF DISCHARGE (after the slash '/').
|
|
24
|
+
- pickUpReference: A reference code for cargo pickup. If not mentioned explicitly and pickUpTerminal is extracted, then use bookingNumber as pickUpReference.
|
|
25
|
+
|
|
26
|
+
- cyCutOff: The deadline for cargo to be delivered to the Container Yard. It can be referred to as FCL delivery cut-off, CY CUT OFF, CY Closing - Latest Return Container Date, Cargo Cut-off deadline
|
|
27
|
+
- siCutOff: The deadline for submitting shipping instructions. It can be referred to as Shipping Instruction closing, SI Cut Off, Shipping Instruction deadline, INTENDED SI CUT-OFF
|
|
28
|
+
- vgmCutOff: The deadline for submitting the Verified Gross Mass of the cargo. It can be referred to as VGM cut-off, VGM Submission Deadline, Verified Gross Mass deadline
|
|
29
|
+
|
|
30
|
+
- carrierName and carrierAddress:
|
|
31
|
+
- Extract the name and address of the carrier who is the main parent company in the document.
|
|
32
|
+
- It can be found in the top section of the document, often near the logo or header.
|
|
33
|
+
- Example:
|
|
34
|
+
- "Hapag-Lloyd" for vendorName
|
|
35
|
+
- Hamburg, Germany, Poland, Italy, Vietnam, China etc... for vendorAddress
|
|
54
36
|
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
37
|
+
- transportLegs: Multiple Transport Legs entries may exist, capture all instances under "transportLegs". Make sure the order of the legs are important.
|
|
38
|
+
- eta: The estimated time of arrival for a specific leg.
|
|
39
|
+
- etd: The estimated time of departure for a specific leg.
|
|
40
|
+
- imoNumber: The International Maritime Organization number for a specific leg.
|
|
41
|
+
- portOfDischarge: The port where cargo is unloaded for a specific leg.
|
|
42
|
+
- portOfLoading: The port where cargo is loaded for a specific leg.
|
|
43
|
+
- vesselName: The name of the vessel for a specific leg.
|
|
44
|
+
- voyage: The journey or route taken by the vessel for a specific leg.
|
|
45
|
+
|
|
46
|
+
- Containers: Need to extract Depot details per Container Type. Multiple Containers entries may exist, capture all instances under "Containers".
|
|
47
|
+
- containerType: The type of container (e.g., 20FT, 40FT, 20ft, 40ft, 40HC, 20DC, etc...).
|
|
48
|
+
- pickupDepotCode: The code of the depot where the empty container is picked up.
|
|
49
|
+
- dropOffDepotCode: The code of the depot where the empty container is dropped off.
|
|
50
|
+
|
|
51
|
+
IMPORTANT explanation for the transportLegs part as follows:
|
|
52
|
+
- There is at least one leg in each document.
|
|
53
|
+
- 'eta' must be equal or later than 'etd'!
|
|
54
|
+
- Multiple legs are possible. When there are multiple legs,
|
|
55
|
+
- Sequential Sorting: You must manually re-order legs based on etd then eta, regardless of their order in the source text.
|
|
56
|
+
- The Connectivity Rule: For any sequence of legs, the Destination (Port of Discharge) of the previous leg must match the Origin (Port of Loading) of the following leg.
|
|
57
|
+
- Transhipment Handling: Treat any mentioned "Transhipment Port" as the bridge between two legs (Discharge for Leg A / Loading for Leg B).
|
|
58
|
+
- Timeline Integrity: Ensure a "No Time Travel" policy: The eta of a previous leg must be earlier than or equal to the etd of the following leg.
|
|
59
|
+
- Naming Convention: Look for Port Names followed by abbreviations in parentheses, e.g., "Port Name (ABCDE)".
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
- The JSON schema must be followed during the extraction.
|
|
62
|
-
- The values must only include text found in the document
|
|
63
|
-
- Do not normalize any entity value.
|
|
64
|
-
- If an entity is not found in the document, keep it empty or np.Nan.
|
|
65
|
-
- Validate the JSON make sure its a valid JSON ! No extra text, no missing comma!
|
|
61
|
+
<INSTRUCTIONS>
|
|
@@ -1,32 +1,146 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "OBJECT",
|
|
3
3
|
"properties": {
|
|
4
|
-
"bookingNumber": {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
"bookingNumber": {
|
|
5
|
+
"type": "STRING",
|
|
6
|
+
"nullable": true,
|
|
7
|
+
"description": "A unique identifier assigned to the shipment booking, used for tracking and reference. They are often referred to as 'Booking No.', 'Booking Reference', 'Our Reference', or 'Order Ref'."
|
|
8
|
+
},
|
|
9
|
+
"contractNumber": {
|
|
10
|
+
"type": "STRING",
|
|
11
|
+
"nullable": true,
|
|
12
|
+
"description": "It's a contract number between the carrier and Forto Logistics SE & Co KG."
|
|
13
|
+
},
|
|
14
|
+
"pickUpTerminalCode": {
|
|
15
|
+
"type": "STRING",
|
|
16
|
+
"nullable": true,
|
|
17
|
+
"description": "The specific terminal for cargo pickup during the import shipment."
|
|
18
|
+
},
|
|
19
|
+
"gateInTerminalCode": {
|
|
20
|
+
"type": "STRING",
|
|
21
|
+
"nullable": true,
|
|
22
|
+
"description": "The specific terminal where cargo is gated in especially Export terminal delivery address. E.g., Export terminal delivery address, Export terminal location, or Export terminal name."
|
|
23
|
+
},
|
|
24
|
+
"performaDate": {
|
|
25
|
+
"type": "STRING",
|
|
26
|
+
"nullable": true,
|
|
27
|
+
"description": "The date considered to apply the rates and charges specified in the booking confirmation"
|
|
28
|
+
},
|
|
29
|
+
"cyCutOff": {
|
|
30
|
+
"type": "STRING",
|
|
31
|
+
"nullable": true,
|
|
32
|
+
"description": "The datetime by which the cargo to be delivered to the Container Yard. It can be found with keys FCL delivery cut-off, FCL DG delivery cut-off, CY CUT OFF, CY Closing."
|
|
33
|
+
},
|
|
34
|
+
"gateInReference": {
|
|
35
|
+
"type": "STRING",
|
|
36
|
+
"nullable": true,
|
|
37
|
+
"description": "A reference code for cargo entering the terminal to drop the loaded cargo for Export. Sometimes it can be 'Our Reference'."
|
|
38
|
+
},
|
|
39
|
+
"mblNumber": {
|
|
40
|
+
"type": "STRING",
|
|
41
|
+
"nullable": true,
|
|
42
|
+
"description": "Bill of Lading number (B/L NO.), a document issued by the carrier."
|
|
43
|
+
},
|
|
44
|
+
"pickUpReference": {
|
|
45
|
+
"type": "STRING",
|
|
46
|
+
"nullable": true,
|
|
47
|
+
"description": "A reference code for cargo pickup during the import shipment. Sometimes it can be 'Our Reference'."
|
|
48
|
+
},
|
|
49
|
+
"siCutOff": {
|
|
50
|
+
"type": "STRING",
|
|
51
|
+
"nullable": true,
|
|
52
|
+
"description": "The deadline datetime for submitting the Shipping Instructions (SI) to the carrier. It can be found with keys Shipping Instruction Closing."
|
|
53
|
+
},
|
|
54
|
+
"vgmCutOff": {
|
|
55
|
+
"type": "STRING",
|
|
56
|
+
"nullable": true,
|
|
57
|
+
"description": "The deadline datetime for submitting the Verified Gross Mass (VGM) to the carrier. It can be found with keys VGM DEADLINE, VGM DUE, VGM CUT OFF."
|
|
58
|
+
},
|
|
59
|
+
"containers": {
|
|
60
|
+
"type": "ARRAY",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "OBJECT",
|
|
63
|
+
"properties": {
|
|
64
|
+
"containerType": {
|
|
65
|
+
"type": "STRING",
|
|
66
|
+
"nullable": true,
|
|
67
|
+
"description": "The size / type of the container, such as 20ft, 40ft, 40HC, 20DC etc under Type/Size column."
|
|
68
|
+
},
|
|
69
|
+
"pickUpDepotCode": {
|
|
70
|
+
"type": "STRING",
|
|
71
|
+
"nullable": true,
|
|
72
|
+
"description": "The depot code where the empty container will be picked up. It is identified as Empty Pick Up Depot or Export Empty Pick Up Depot(s)."
|
|
73
|
+
},
|
|
74
|
+
"dropOffDepotCode": {
|
|
75
|
+
"type": "STRING",
|
|
76
|
+
"nullable": true,
|
|
77
|
+
"description": "The depot code where the empty container will be dropped off."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": ["containerType", "pickupDepotCode", "dropoffDepotCode"]
|
|
82
|
+
},
|
|
14
83
|
"transportLegs": {
|
|
15
84
|
"type": "ARRAY",
|
|
16
85
|
"items": {
|
|
17
86
|
"type": "OBJECT",
|
|
18
87
|
"properties": {
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
88
|
+
"eta": {
|
|
89
|
+
"type": "STRING",
|
|
90
|
+
"nullable": true,
|
|
91
|
+
"description": "Estimated Time of Arrival (ETA) is the expected date when the shipment will arrive at its destination."
|
|
92
|
+
},
|
|
93
|
+
"etd": {
|
|
94
|
+
"type": "STRING",
|
|
95
|
+
"nullable": true,
|
|
96
|
+
"description": "Estimated Time of Departure (ETD) is the expected date when the shipment will leave the origin port."
|
|
97
|
+
},
|
|
98
|
+
"imoNumber": {
|
|
99
|
+
"type": "STRING",
|
|
100
|
+
"nullable": true,
|
|
101
|
+
"description": "The International Maritime Organization number for a specific leg. It can be found as IMO No, IMO number."
|
|
102
|
+
},
|
|
103
|
+
"portOfDischarge": {
|
|
104
|
+
"type": "STRING",
|
|
105
|
+
"nullable": true,
|
|
106
|
+
"description": "The port where the goods are discharged from the vessel. This is the destination port for the shipment. It can be found at POD, Port of Discharge, To, Discharge Port"
|
|
107
|
+
},
|
|
108
|
+
"portOfLoading": {
|
|
109
|
+
"type": "STRING",
|
|
110
|
+
"nullable": true,
|
|
111
|
+
"description": "The port where the goods are loaded onto the vessel. This is the origin port for the shipment. It can be found at POL, Port of Loading, From, Load Port"
|
|
112
|
+
},
|
|
113
|
+
"vesselName": {
|
|
114
|
+
"type": "STRING",
|
|
115
|
+
"nullable": true,
|
|
116
|
+
"description": "The name of the vessel carrying the shipment. It can be found at vessel, INTENDED VESSEL/VOYAGE"
|
|
117
|
+
},
|
|
118
|
+
"voyage": {
|
|
119
|
+
"type": "STRING",
|
|
120
|
+
"nullable": true,
|
|
121
|
+
"description": "The journey or route taken by the vessel for a specific leg. It can be found at Voy. no, INTENDED VESSEL/VOYAGE"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"eta",
|
|
127
|
+
"etd",
|
|
128
|
+
"portOfDischarge",
|
|
129
|
+
"portOfLoading",
|
|
130
|
+
"vesselName",
|
|
131
|
+
"voyage"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"carrierAddress": {
|
|
135
|
+
"type": "STRING",
|
|
136
|
+
"nullable": true,
|
|
137
|
+
"description": "The address of the carrier who provides service and issued the document."
|
|
138
|
+
},
|
|
139
|
+
"carrierName": {
|
|
140
|
+
"type": "STRING",
|
|
141
|
+
"nullable": true,
|
|
142
|
+
"description": "The name of the carrier who issued the document e,g, Hapag-Lloyd."
|
|
29
143
|
}
|
|
30
144
|
},
|
|
31
|
-
"required": []
|
|
145
|
+
"required": ["bookingNumber", "transportLegs", "containers", "cyCutOff", "vgmCutOff", "siCutOff"]
|
|
32
146
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
You are
|
|
1
|
+
<PERSONA> You are an efficient document entity data extraction specialist working for a Freight Forwarding company. <PERSONA>
|
|
2
|
+
|
|
3
|
+
<TASK> Your task is to extract data from Booking Confirmation documents as per the given response schema structure. <TASK>
|
|
4
|
+
|
|
5
|
+
<CONTEXT>
|
|
6
|
+
The Freight Forwarding company receives Booking Confirmation from MAERSK Carrier (Shipping Lines) partners.
|
|
7
|
+
These Booking Confirmations contain various details related to booking, container pick up and drop off depot details, vessel details, as well as other transport Legs data.
|
|
8
|
+
They may be written in different languages such as English, German, Vietnamese, Chinese, and other European languages, and can appear in a variety of formats and layouts.
|
|
9
|
+
Your role is to accurately extract specific entities from these Booking Confirmations to support efficient processing and accurate record-keeping.
|
|
10
|
+
<CONTEXT>
|
|
2
11
|
|
|
3
12
|
bookingNumber: A unique identifier for the booking.
|
|
4
13
|
cyCutOff: The deadline for cargo to be delivered to the Container Yard.
|