Spaces:
Paused
Paused
Update prompt.py
Browse files
prompt.py
CHANGED
|
@@ -14,7 +14,7 @@ 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:
|
| 18 |
{
|
| 19 |
"PART-1 - BILL OF ENTRY SUMMARY": {
|
| 20 |
"Port Code": "",
|
|
@@ -98,7 +98,7 @@ Return ONLY valid JSON for PART-1 using exactly this schema:
|
|
| 98 |
Output only JSON.
|
| 99 |
""",
|
| 100 |
"PART-2": """
|
| 101 |
-
Return ONLY valid JSON for PART-2 using exactly this schema:
|
| 102 |
{
|
| 103 |
"PART -II - INVOICE & VALUATION DETAILS": {},
|
| 104 |
"Details": {
|
|
@@ -136,7 +136,7 @@ Return ONLY valid JSON for PART-2 using exactly this schema:
|
|
| 136 |
Output only JSON.
|
| 137 |
""",
|
| 138 |
"PART-3": """
|
| 139 |
-
Return ONLY valid JSON for PART-3 using exactly this schema:
|
| 140 |
{
|
| 141 |
"Part - III - DUTIES": {},
|
| 142 |
"Item Details": [
|
|
@@ -255,7 +255,7 @@ Return ONLY valid JSON for PART-3 using exactly this schema:
|
|
| 255 |
Output only JSON.
|
| 256 |
""",
|
| 257 |
"PART-4": """
|
| 258 |
-
Return ONLY valid JSON for PART-4 using exactly this schema:
|
| 259 |
{
|
| 260 |
"PART - IV - ADDITIONAL DETAILS": {},
|
| 261 |
"LICENSE DETAILS": [
|
|
@@ -277,7 +277,7 @@ Return ONLY valid JSON for PART-4 using exactly this schema:
|
|
| 277 |
Output only JSON.
|
| 278 |
""",
|
| 279 |
"PART-5": """
|
| 280 |
-
Return ONLY valid JSON for PART-5 using exactly this schema:
|
| 281 |
{
|
| 282 |
"PART - V - OTHER COMPLIANCES": {
|
| 283 |
"EXAMINATION ORDER RMS": "",
|
|
@@ -290,7 +290,7 @@ Return ONLY valid JSON for PART-5 using exactly this schema:
|
|
| 290 |
Output only JSON.
|
| 291 |
""",
|
| 292 |
"PART-6": """
|
| 293 |
-
Return ONLY valid JSON for PART-6 using exactly this schema:
|
| 294 |
{
|
| 295 |
"PART-VI- DECLARATIONS": "None"
|
| 296 |
}
|
|
|
|
| 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 |
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 |
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 |
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 |
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": "",
|
|
|
|
| 290 |
Output only JSON.
|
| 291 |
""",
|
| 292 |
"PART-6": """
|
| 293 |
+
Return ONLY valid JSON for PART-6 using exactly this schema :
|
| 294 |
{
|
| 295 |
"PART-VI- DECLARATIONS": "None"
|
| 296 |
}
|