// I want to solve · Developers / Enterprise IT / Researchers
📄 Build RAG and process documents
Turn PDFs and web pages into clean text, choose vector stores and rerankers, debug poor retrieval, and give agents long-term memory.
4 steps4 alternatives4 stacks · 3 problemschecked 2026-10-22
How to do it
- 01Turn documents into clean text: MarkItDown for simple files, Docling / MinerU for complex PDFs
- 02Chunk by headings or semantics and keep source and page numbers
- 03Combine vector and keyword search, then add a reranker
- 04Build 50 gold Q&A pairs and evaluate with Ragas
What it costs
Free start
Parsing, vector stores and eval tools all have open-source versions
Pay as you go
Embeddings and answers bill per token
Team / enterprise
Hosted vector DBs bill by storage and queries
Prices change; the vendor’s official page wins. Subscriptions compared · API prices
Alternatives: which to pick
✓ Good fit
- Document Q&A, search and summarisation
✗ Not a good fit
- Very small corpora: just use long context
Ready-made stacks
All stacksSoftware that helps
All software📄 Document parsing & web scraping🧲 Retrieval, vector DBs & embeddings🧠 Memory & context
Problems & solutions
All problems- ChoiceWhich PDF/document parser to use for RAGRAG quality depends heavily on parsing. Popular open-source parsers have different strengths; compare them on a sample of your own documents. We have not run a unified test yet.
- How-toRAG retrieves the wrong passages: how to debugFirst find which stage fails: parsing, chunking, retrieval or generation. Measure with a fixed question set, then improve one stage at a time.
- ChoiceGiving agents memory across sessions: memory layer or rules file?For coding agents a project rules file is often enough; apps for end users that need long-term memory may need a dedicated memory layer.
Needs in this scenario
-
DEV-03RAG parsing, chunking and retrieval are inaccurate
Developers · People search for: best pdf parser for rag; docling vs markitdown; rag retrieval accuracy
-
DEV-10Context management: lossy compaction and no memory across sessions
Developers · People search for: agent memory layer; claude code context compaction; mem0 vs letta
Learn
All tutorials- LlamaIndex 文档:Understanding
LlamaIndex · RAG · English
- RAG_Techniques
Nir Diamant · RAG · English
- Anthropic: Contextual Retrieval
Anthropic · RAG · English
- OpenAI Cookbook
OpenAI · RAG · English
- openai/openai-cookbook
OpenAI · RAG · English
- Claude Cookbooks
Anthropic · RAG · English
- Gemini API Cookbook
Google · RAG · English
- LangChain RAG 教程
LangChain · RAG · English
- Pinecone Learning Center
Pinecone · RAG · English
- Weaviate Academy
Weaviate · RAG · English