feat(ocr): replace Google Vision with Mistral OCR as PDF fallback #333
Reference in New Issue
Block a user
Delete Branch "worktree-mistral-ocr-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
סיכום
mistral-ocr-latest) כ-fallback לדפים סרוקים_text_quality_ok()→ Mistral קורא את כל ה-PDF בקריאה אחת## כותרות,|טבלאות|— ה-chunker עודכן לזהות כותרות ATX כגבולות-סקציהMISTRAL_API_KEYנוסף ל-Coolifyשינויים
config.pyGOOGLE_CLOUD_VISION_API_KEY→MISTRAL_API_KEY; allowlist:vision.googleapis.com→api.mistral.aiextractor.py_call_mistral_ocr()(async, base64 PDF → per-page Markdown);_extract_pdf()עבר לניתוב document-levelchunker.py_split_into_sections(): הוסף(?:#{1,3}\s+)?לאנקור כדי ש-## נימוקי העררימופה לסקציה הנכונהscripts/SCRIPTS.mdocr_benchmark_mistral.py(בנצ'מרק שהוביל להחלטה)למה Mistral?
בנצ'מרק על 5 תיקים (כתבי ערר בלבד):
Invariants
🤖 Generated with Claude Code