26 lines
916 B
Plaintext
26 lines
916 B
Plaintext
Analyze the document and return a JSON object.
|
|
|
|
### TAGGING STRATEGY:
|
|
1. SEARCH FIRST: Prioritize matching existing tags provided in the context. Use fuzzy matching (e.g., use "Utilities" for "Power Bill").
|
|
2. CREATE NEW: Only create a new tag for entirely new categories. Use broad "Domain" names.
|
|
3. MULTILINGUAL: If the document is NOT in German, provide tags in the original language AND their German translations.
|
|
|
|
### CUSTOM FIELDS:
|
|
- language: ISO code (de, en, es, it, el).
|
|
- document_type: Broad classification.
|
|
- total_amount: Number only.
|
|
- invoice_number: String or null.
|
|
- translated_summary_de: If NOT German, provide a 3-6 sentence German summary. If German, return null.
|
|
|
|
### JSON STRUCTURE:
|
|
{
|
|
"title": "",
|
|
"correspondent": "",
|
|
"tags": [],
|
|
"document_date": "YYYY-MM-DD",
|
|
"language": "",
|
|
"document_type": "",
|
|
"total_amount": 0.0,
|
|
"invoice_number": "",
|
|
"translated_summary_de": null
|
|
} |