Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

846 B
Raw Blame

PDF upload validation (FileUploadValidator.validate_pdf_structure) now inspects only the first page instead of building every page the file declares. pdfplumber's PDF.pages, which its close() also walks, parsed and constructed every page object before page 0 was looked at: a 10.5 MB upload declaring 100,000 pages measured 7.2 s and 423 MB RSS in the validator, and now measures 0.7 s and 154 MB. The first page is still built with pdfplumber, so its boxes are validated exactly as before. Scope, so this is not read as broader than it is: later pages are no longer checked at upload time (text extraction still reads them), and a page tree whose root /Kids array is itself huge is still parsed in full, because pdfminer reads that array as one object; that cost grows with the array's size in bytes, not with the number of pages built.