Refactor: prompt optimization to prefer Traditional Chinese for supplier names
This commit is contained in:
@@ -565,6 +565,7 @@ def parse_ocr_chunks(chunks, accounting_db, location):
|
||||
- Every single field in the JSON (supplierName, materialName, etc.) MUST be in **TRADITIONAL CHINESE (繁體中文)**.
|
||||
2. **SUPPLIER IDENTIFICATION**:
|
||||
- The "supplierName" must be the clean COMPANY NAME. Strip out document type descriptors like "發貨單", "Invoice", etc.
|
||||
- **IMPORTANT**: Try your best to identify the supplier's official name in **Traditional Chinese**.
|
||||
3. **DATE**:
|
||||
- Identify the "Order Date". Format: `YYYY-MM-DD`.
|
||||
4. **LOCATION**: "receiveLocation" MUST be exactly "{location}".
|
||||
|
||||
Reference in New Issue
Block a user