arXiv · 2611.38876
CLEAR: Converting PDFs Locally into Enriched, Agent-Ready Markdown for Reliable Retrieval
Abstract
Researchers and companies now base decisions on answers from AI systems that read their documents. Three problems make these answers less reliable than they look. First, a fact may appear partly in the text and partly in a figure or table, or only in the figure or table. If the AI system misses that part, its answer may be wrong with no visible sign. Second, AI answers become new content that future models may learn from, so the missing information may become a new kind of bias. Third, the documents may hold private data that must not leave the owner's computer, so the whole process must run locally. Our goal is to give the AI system the full content of a document, figures included, on one local machine. We build a local pipeline that converts a PDF into Markdown and describes each figure as text inside a tag. We test it on research papers. Five AI models answer 19 two-hop questions whose answers exist only inside figures, and we compare the original PDF with the parsed Markdown as input. The parsed Markdown gives higher accuracy than the PDF in four of six matched pairs, and in one pair accuracy rises from 89.5\% to 100\%. Each answer costs 1.6 to 18.1 times less with the parsed Markdown than with the PDF. In six setups that read the parsed Markdown, three of the five models (Sonnet, Opus and Haiku) could also open the original figure image when the Markdown text did not hold enough. Each of these six setups answered the 19 questions in three runs, so the six setups gave 342 answers in total. In 258 of these answers, the Markdown text alone gave the correct answer, and no image was opened. In 58 answers, the model opened the image, and 56 of these 58 answers were correct. We tested only research papers, but the same local process may also apply to business documents. This work is the first part of a local harness system for research.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
K. Ordoumpozanis, G. A. Papakostas. 2026-11-28. CLEAR: Converting PDFs Locally into Enriched, Agent-Ready Markdown for Reliable Retrieval. https://arxiv.science/abs/2611.38876
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.