Refactor: prompt optimization to prefer Traditional Chinese for supplier names

This commit is contained in:
Proclean Agent
2026-04-20 21:21:43 +08:00
parent b9c95e2a3c
commit 2f5b2b9b90

View File

@@ -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}".