From 1b4c82ab8386e2f1f81f8d694713a22b657981cb Mon Sep 17 00:00:00 2001 From: James Date: Wed, 25 Feb 2026 14:21:43 -0500 Subject: [PATCH] Improve title prompt: require specific, identifying titles with sender+topic+date --- ai.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai.go b/ai.go index 33ec85d..e66a0cc 100644 --- a/ai.go +++ b/ai.go @@ -159,7 +159,7 @@ func AnalyzeWithVision(imageData []byte) (*DocumentAnalysis, error) { - vendor: Company/organization name - amount: Dollar/currency amount if present (e.g., "$123.45" or "809,400 BYN") -5. **Title**: SHORT English title (max 6-8 words), e.g. "Apple Store Mac Mini Receipt" or "Electric Bill March 2025" +5. **Title**: Specific English title (max 8 words) that identifies THIS document uniquely. Include the key distinguishing details: who sent it, what it's about, and when. Bad: "Financial Report" or "Invoice". Good: "N-able Technology Exchange Rate Loss Explanation Feb 2025" or "Duke Energy Electric Bill Oct 2024" or "IRS Form 1099-INT Chase Bank 2024" or "BayCare HomeCare Invoice $340 Nov 2025". Never use generic words like "Document", "Letter", "Report" alone — always qualify them. 6. **Summary**: 1-2 sentence English description with key details.