Improve title prompt: require specific, identifying titles with sender+topic+date
This commit is contained in:
parent
4970157690
commit
1b4c82ab83
2
ai.go
2
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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue