mlsanityData to 14 Oct 2026

AI-Friendly LaTeX: Using LaTeX Code as a Knowledge Source for Retrieval-Augmented Generation

arXiv 2605.22923 ↗First posted 21 May 2026cs.IR cs.CLcited by 0

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Large language models can answer questions about textbooks, lecture notes, and programming exercises more reliably when their answers are grounded in an explicit knowledge source. Retrieval-augmented generation (RAG) is a common approach: relevant fragments of a document are retrieved and inserted into the model context before answering. For mathematical and technical material, the original LaTeX source can be a better starting point than a PDF, because it contains structural information, labels, sectioning commands, macros, and authorial intent that are often lost or distorted in PDF extraction. However, LaTeX source is not automatically AI-friendly. Cross-references must be resolved, custom macros must be interpreted, exercises and examples must be identified, and author-supplied semantic metadata may be needed. This article describes a focused preprocessing approach for turning LaTeX source, together with its compiled auxiliary files and optional author annotations, into Markdown and JSONL chunks suitable for indexing in a vector database.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 1 of its 10 references that are in the map. First posted on arXiv 21 May 2026.

Builds on

1 of 10 references.

References · 1

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey
  2. 2025CiteFix: Enhancing RAG Accuracy Through Post-Processing Citation Correction
  3. 2024Developing Retrieval Augmented Generation (RAG) based LLM Systems from PDFs: An Experience Report
  4. 2024Meta Knowledge for Retrieval Augmented Large Language Models
  5. 2024Customized Retrieval Augmented Generation and Benchmarking for EDA Tool Documentation QA
  6. 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluation
  7. 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Survey
  8. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation System