credent007 commited on
Commit
c4d910f
·
verified ·
1 Parent(s): 982f9da

Update prompt.py

Browse files
Files changed (1) hide show
  1. prompt.py +15 -5
prompt.py CHANGED
@@ -14,7 +14,9 @@ PART-6
14
  def get_part_prompt(part_name):
15
  prompts = {
16
  "PART-1": """
17
- Return ONLY valid JSON for PART-1 using exactly this schema and if you don't get data bring this "" not "0":
 
 
18
  {
19
  "PART-1 - BILL OF ENTRY SUMMARY": {
20
  "Port Code": "",
@@ -98,7 +100,9 @@ Return ONLY valid JSON for PART-1 using exactly this schema and if you don't get
98
  Output only JSON.
99
  """,
100
  "PART-2": """
101
- Return ONLY valid JSON for PART-2 using exactly this schema and if you don't get data bring this "" not "0":
 
 
102
  {
103
  "PART -II - INVOICE & VALUATION DETAILS": {},
104
  "Details": {
@@ -136,7 +140,9 @@ Return ONLY valid JSON for PART-2 using exactly this schema and if you don't get
136
  Output only JSON.
137
  """,
138
  "PART-3": """
139
- Return ONLY valid JSON for PART-3 using exactly this schema and if you don't get data bring this "" not "0":
 
 
140
  {
141
  "Part - III - DUTIES": {},
142
  "Item Details": [
@@ -255,7 +261,9 @@ Return ONLY valid JSON for PART-3 using exactly this schema and if you don't get
255
  Output only JSON.
256
  """,
257
  "PART-4": """
258
- Return ONLY valid JSON for PART-4 using exactly this schema and if you don't get data bring this "" not "0":
 
 
259
  {
260
  "PART - IV - ADDITIONAL DETAILS": {},
261
  "LICENSE DETAILS": [
@@ -277,7 +285,9 @@ Return ONLY valid JSON for PART-4 using exactly this schema and if you don't get
277
  Output only JSON.
278
  """,
279
  "PART-5": """
280
- Return ONLY valid JSON for PART-5 using exactly this schema and if you don't get data bring this "" not "0":
 
 
281
  {
282
  "PART - V - OTHER COMPLIANCES": {
283
  "EXAMINATION ORDER RMS": "",
 
14
  def get_part_prompt(part_name):
15
  prompts = {
16
  "PART-1": """
17
+ Return ONLY valid JSON for PART-1 using exactly this schema and If a value is missing or unreadable, return "".
18
+ Return 0 only when 0 is explicitly printed in the document.
19
+ Do not infer missing values.":
20
  {
21
  "PART-1 - BILL OF ENTRY SUMMARY": {
22
  "Port Code": "",
 
100
  Output only JSON.
101
  """,
102
  "PART-2": """
103
+ Return ONLY valid JSON for PART-2 using exactly this schema and If a value is missing or unreadable, return "".
104
+ Return 0 only when 0 is explicitly printed in the document.
105
+ Do not infer missing values.:
106
  {
107
  "PART -II - INVOICE & VALUATION DETAILS": {},
108
  "Details": {
 
140
  Output only JSON.
141
  """,
142
  "PART-3": """
143
+ Return ONLY valid JSON for PART-3 using exactly this schema and If a value is missing or unreadable, return "".
144
+ Return 0 only when 0 is explicitly printed in the document.
145
+ Do not infer missing values.:
146
  {
147
  "Part - III - DUTIES": {},
148
  "Item Details": [
 
261
  Output only JSON.
262
  """,
263
  "PART-4": """
264
+ Return ONLY valid JSON for PART-4 using exactly this schema and If a value is missing or unreadable, return "".
265
+ Return 0 only when 0 is explicitly printed in the document.
266
+ Do not infer missing values.:
267
  {
268
  "PART - IV - ADDITIONAL DETAILS": {},
269
  "LICENSE DETAILS": [
 
285
  Output only JSON.
286
  """,
287
  "PART-5": """
288
+ Return ONLY valid JSON for PART-5 using exactly this schema and If a value is missing or unreadable, return "".
289
+ Return 0 only when 0 is explicitly printed in the document.
290
+ Do not infer missing values.:
291
  {
292
  "PART - V - OTHER COMPLIANCES": {
293
  "EXAMINATION ORDER RMS": "",