A RAG System Reads 22 RAG Papers to Explain RAG, for Under a Dollar
A working RAG pipeline that costs pocket change to run removes the last excuse for not building a private-document Q&A system. The combination of a free local embedder and a cheap cloud LLM means a team can stand up a cited, cross-document research assistant in an afternoon without writing code or committing to a subscription.
Twenty-two foundational RAG papers were fed into a local RAG system to create a research assistant that answers questions across the entire corpus. The setup pairs the open-source AnythingLLM desktop app—which handles PDF chunking, local vector embedding with multilingual-e5-small, and a LanceDB vector store—with a pay-per-use cloud model, deepseek-v4-flash, accessed via an OpenAI-compatible API. Embedding runs locally at zero cost; only the final chat inference touches the cloud bill.
The resulting assistant correctly distinguishes RAG-Sequence from RAG-Token in the Lewis 2020 paper, explains the Lost in the Middle phenomenon with its experimental design, contrasts Self-RAG’s introspection approach against CRAG’s corrective retrieval, and lists every paper in the set that proposes a new retriever or embedding method. A knowledge-transfer question on building a financial-document Q&A system yields six actionable recommendations grounded in specific papers. A negative-control question about diffusion models returns an honest “not found” instead of a hallucination.
Total cloud spend for ingesting 22 papers and running dozens of chat rounds came in under one yuan. The same pattern—swap the corpus, keep the toolchain—applies to internal API docs, policy libraries, or contract archives.
Local embedding plus cloud chat is an under-appreciated cost pattern: the expensive GPU work (vectorization) stays on the user’s machine, and only the cheap token generation hits the meter.
Cross-lingual retrieval—Chinese questions over English papers—worked because the embedder maps both languages into a shared vector space, not because the LLM is multilingual. The retrieval step is the real multilingual bottleneck.
AnythingLLM’s batch-upload flakiness suggests the desktop RAG tooling layer still has rough edges that remind us these are early-stage products, not polished SaaS.
The negative-control test (asking about diffusion models) is the most important one in the whole demo; a RAG system that stays silent on unknowns is worth more than one that confidently fabricates.