Update prompts.py
Browse files- prompts.py +2 -11
prompts.py
CHANGED
|
@@ -157,14 +157,10 @@ Analyze the image to extract values for the specified keys. Use the detailed des
|
|
| 157 |
"berlaku_sampai": "<value> OR empty OR null"
|
| 158 |
"qr_code" : "<value> OR empty OR null"
|
| 159 |
}
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
Indicate whether the field was present.
|
| 163 |
-
Justify the extracted value or the use of "null" or "empty" as per the conditions.
|
| 164 |
-
Return Output:
|
| 165 |
Generate a JSON object:
|
| 166 |
{
|
| 167 |
-
"reasoning": "reasoning for each key",
|
| 168 |
"output JSON": "key-value pairs"
|
| 169 |
}
|
| 170 |
---
|
|
@@ -404,10 +400,6 @@ KULON KEC. ASTANAJAPURA KAB.CIREBON ".
|
|
| 404 |
- **If the Field is Present but No Value is Provided**: `"empty"`
|
| 405 |
|
| 406 |
---
|
| 407 |
-
### Reasoning Process
|
| 408 |
-
For each key, explain your reasoning:
|
| 409 |
-
Indicate whether the field was present.
|
| 410 |
-
Justify the extracted value or the use of "null" or "empty" as per the conditions.
|
| 411 |
|
| 412 |
### Output Format
|
| 413 |
|
|
@@ -462,7 +454,6 @@ Justify the extracted value or the use of "null" or "empty" as per the condition
|
|
| 462 |
Return Output:
|
| 463 |
Generate a JSON object:
|
| 464 |
{
|
| 465 |
-
"reasoning": "reasoning for each key",
|
| 466 |
"output JSON": "key-value pairs"
|
| 467 |
}
|
| 468 |
—
|
|
|
|
| 157 |
"berlaku_sampai": "<value> OR empty OR null"
|
| 158 |
"qr_code" : "<value> OR empty OR null"
|
| 159 |
}
|
| 160 |
+
|
| 161 |
+
### Return Output:
|
|
|
|
|
|
|
|
|
|
| 162 |
Generate a JSON object:
|
| 163 |
{
|
|
|
|
| 164 |
"output JSON": "key-value pairs"
|
| 165 |
}
|
| 166 |
---
|
|
|
|
| 400 |
- **If the Field is Present but No Value is Provided**: `"empty"`
|
| 401 |
|
| 402 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
|
| 404 |
### Output Format
|
| 405 |
|
|
|
|
| 454 |
Return Output:
|
| 455 |
Generate a JSON object:
|
| 456 |
{
|
|
|
|
| 457 |
"output JSON": "key-value pairs"
|
| 458 |
}
|
| 459 |
—
|