Use layout-aware parsing and OCR for scans, and verify the extracted text with spot checks and automatic checks (empty pages, garbled characters).
Keep tables intact: convert to Markdown or structured text with the header repeated, rather than splitting rows from their column names; for very large tables, index rows with the headers or use text-to-SQL instead.
Attach captions, headings and page numbers as metadata, and describe charts and images with a vision model so they become searchable text.
Loading…