{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "docling-project-docling--prepare-documents-for-a-rag-index",
 "repo": "docling-project/docling",
 "repo_url": "https://github.com/docling-project/docling",
 "repo_slug": "docling-project-docling",
 "title": "Prepare a document folder for a RAG index",
 "page_title": "How to prepare a document folder for a RAG index with Docling",
 "summary": "Use the Python API to convert mixed documents into Markdown before chunking them into your retriever.",
 "who": "A developer building a chat-with-your-docs app over a pile of PDFs, slides and spreadsheets.",
 "problem": "Garbage in, garbage out: badly parsed documents give a RAG system bad chunks and wrong answers.",
 "outcome": "Structured Markdown exports of every document, ready to chunk and embed in LangChain, LlamaIndex or Haystack.",
 "steps": [
  "Install with `pip install docling`",
  "In Python, create a `DocumentConverter()` and call `converter.convert(source)` with a local path or URL",
  "Export each result with `result.document.export_to_markdown()`",
  "Feed the Markdown into your framework; the README lists integrations with LangChain, LlamaIndex, Crew AI and Haystack",
  "Keep sensitive files on your machine; Docling supports local execution for air-gapped environments"
 ],
 "agent_prompt": "Using docling-project/docling, write a Python script that converts every file in <folder> with DocumentConverter, saves the Markdown with export_to_markdown, and loads the results into <LangChain or LlamaIndex> for retrieval. Run it and report any files that failed.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README points to the docs for chunking and framework examples, so plan to read the integrations page.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or higher",
  "macOS, Linux or Windows on x86_64 or arm64",
  "Optional: a GPU for faster VLM pipelines such as GraniteDocling"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/docling-project-docling/prepare-documents-for-a-rag-index/",
 "md": "https://dedupedai.com/use-cases/docling-project-docling/prepare-documents-for-a-rag-index/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/docling-project-docling--prepare-documents-for-a-rag-index.json",
 "api_version": "v1"
}
