The reference guide · 16 chapters · scripts included · free updates for life
Your documents,
your AI
The Local RAG Kit: THE reference guide for building a reliable RAG over your own documents — PDFs, notes, email, a Zotero library — without sending anything to the cloud. A RAG that holds up on 300 PDFs, not the demo that works once in three.
Get the kit — $24$24 · one-time payment · free updates for life
What is The Local RAG Kit?
The Local RAG Kit is a 16-chapter reference guide and 20-file script pack for building a local RAG pipeline that actually cites your own documents. It's built for professionals, researchers, and developers who already run a local LLM and need reliable retrieval across hundreds of PDFs, a Zotero library, or email archives. You get ingestion, chunking, embeddings, hybrid search, and a recall@k evaluation method, tested on an 8-16GB VRAM PC or a 24GB Apple Silicon Mac.
- 16 chapters and 101 pages, from ingestion to a measured, reliable RAG pipeline.
- 20-file pack: chunking scripts, embedding comparisons, a Zotero pipeline, a recall@k evaluator.
- Two anchor profiles: an 8-16GB VRAM PC and a 24GB unified-memory Apple Silicon Mac.
- Covers ChromaDB, Qdrant, and LanceDB, plus hybrid BM25 search and reranking.
- Chapter 14 gives a recall@k evaluation protocol to measure retrieval before you trust it.
- $24 one-time payment, updates for life included, 30-day money-back guarantee.
✓ This is for you if…
you're a professional, researcher or developer, comfortable at a command line (Python is useful for most chapters, not mandatory), you already run a local AI setup (Ollama/LM Studio, maybe the Local AI Kit), and you want a RAG that goes beyond click-and-go on dozens or hundreds of documents — contracts, a Zotero bibliography, correspondence, an internal wiki.
✗ This isn't for you if…
you just want to ask a question to three PDFs now and then (that's already the Local AI Kit's RAG chapter); you're looking for document retrieval to feed a coding copilot (that's the Local Copilot Kit); or you're deploying for multiple users at a company with compliance requirements (the AI at Work Kit).
Why you can trust this
This guide is written and maintained by BestLLMfor.com — tracking 239 locally-runnable models and 73 guides, published on an open methodology. Every version, Ollama tag, license and command in this guide was checked against official sources (ollama.com, Hugging Face model cards, project changelogs and documentation) at the edition date, September 2026. Nothing is presented as measured on our own machines unless the text says so explicitly; performance figures point to the living pages of bestllmfor.com. Every script in the pack compiles and has been read line by line. What you read is condensed and verified — not a random compilation of tutorials found online. Who's behind BestLLMfor →
The problem
You already run a local AI assistant, maybe already a click-and-go RAG (AnythingLLM, Open WebUI). You drag in a PDF, ask a question, it answers — and then one day it answers off the mark, or worse, invents a citation that doesn't exist in the document. On 300 PDFs, a whole Zotero library, or years of correspondence, click-and-go stops holding up: naive chunking, no verifiable citation, and above all nothing is ever measured — you believe it works from three examples, not from a protocol.
The underlying information is already free on the site, scattered across half a dozen guides (ChromaDB, chunking, hybrid BM25, Zotero, embeddings, reranking, LlamaIndex). This guide is THE reference method: the complete pipeline assembled and tested — ingestion, measured chunking, embeddings, an index that holds up at scale, hybrid search, reranking, and a method to verify it actually works — not a pile of tutorials you have to cross-check yourself.
The assembled, measured RAG vs click-and-go RAG vs pasting everything into the LLM
Same need — querying your documents — three ways to answer it. The honest comparison:
| Assembled RAG (this guide) | Click-and-go RAG | Paste everything into the LLM | |
|---|---|---|---|
| Holds up on hundreds of documents | Yes | Limited | No |
| Verifiable citation, every time | Yes, required | Rarely reliable | No |
| Hybrid search (identifiers, proper nouns) | Yes (BM25 + vector) | No | Not applicable |
| Measured quality (recall@k before/after) | Yes, protocol included | No | No |
| Setup | Several sessions, a proper pipeline | A few minutes | Instant |
| Privacy (100% local) | Yes | Yes | Depends on the LLM used |
| Cost | No monthly cost, once set up | No monthly cost | Context gets expensive past a few documents |
Click-and-go remains the right call for occasional use on two or three documents (that's the Local AI Kit's RAG chapter). This guide takes over once your corpus, stakes, or reliability needs outgrow what click-and-go can hold.
What you get
- Your members area, for life — all 16 chapters, readable on the web, always the current edition.
- The full guide as a PDF (101 pages) — the same content, yours forever, offline.
- 20 ready-to-use files (scripts, templates, comparisons) — an OCR-to-vision fallback, a Zotero pipeline with citation, mbox parsing, three chunking strategies, embedding and vector-database comparisons, hybrid RRF search, adding a reranker, LlamaIndex pipelines and a LangChain agent, a recall@k evaluation script, a troubleshooting decision tree.
- 2 anchor profiles — an 8-16 GB VRAM PC, an Apple Silicon Mac with 24 GB of unified memory: you find your own setup in every example, never a case that doesn't apply to you.
- The evaluation protocol (Ch.14) — building a set of 30-50 test questions, measuring recall@k before and after a change, catching a hallucination with no valid citation, following a real protocol instead of a gut feeling.
- Living edition — every update (new embedders, vector databases, frameworks) shows up in your members area, for life, at no extra cost.
Tools: ChromaDB, Qdrant, LanceDB, LlamaIndex, LangChain, Open WebUI Knowledge, AnythingLLM. 100% local, no monthly cost once set up.
The 16 chapters of the kit
101 pages, from the foundations of the pipeline to a measured, reliable RAG. Nothing to skip: every chapter links to the next.
- Your current RAG is lying to you (or: why this guide exists)
- Anatomy of a RAG pipeline that holds up
- Choosing your stack: script, framework, or advanced no-code interface
- OCR, cleanup, dedup: ingesting what you actually have
- Zotero: wiring your library into a RAG that actually cites
- Email and correspondence: the corpus everyone forgets to RAG
- Chunking: the 5 strategies and how to measure the winner
- Embeddings: English-first or multilingual — how to choose and how to verify
- Local vector index: ChromaDB, Qdrant, LanceDB — which one in 2026
- Hybrid search: when pure vector retrieval isn't enough
- Reranking: the cross-encoder that fixes retrieval
- LlamaIndex and LangChain locally: building past the hand-rolled script
- Open WebUI Knowledge and AnythingLLM in advanced use
- Evaluating your RAG: test sets, citations, hallucinations
- Cost, speed, and troubleshooting by machine
- RAG at work — and what comes next
Living edition: every update enriches this table of contents (dated update log, ch.16) — you never repurchase to get the next version.
Three quick wins before you even open a terminal
Chapter 1 doesn't just set the scene: it hands you three measurable improvements on whatever you already have running, each under 30 minutes.
1 · Audit your current RAG
A 10-point checklist finds the weakest link in your existing setup (or the absence of one) in 10 minutes.
2 · Switch embedders with one command
ollama pull bge-m3, swap the embedder in AnythingLLM or Open WebUI, compare before and after.
3 · Require a verifiable citation
A strict citation clause added to a question you've already asked — then you check that the cited passage really exists.
4 · Then build the full pipeline
Ingestion, measured chunking, embeddings, index, hybrid search, reranking: Parts 2 through 4 walk you there step by step.
- Your members area for life: all 16 chapters, always current (full table of contents above)
- The PDF guide (101 pages) + the 20-file pack (scripts, templates, comparisons — Zotero, chunking, hybrid search, reranking, evaluation...) to download
- The 2 anchor profiles (8-16 GB VRAM PC, 24 GB Mac) and the RAG troubleshooting decision tree
- Every future edition, for life — they show up in your members area automatically
- Instant access after payment, access key emailed to you
All the kits, for life: every guide, current and future, for $49 — already own this one? Upgrade for $25.
Get the kit — $24Secure payment via Stripe. Stripe receipt emailed automatically · invoice on request by replying to the delivery email.
The honest truth
An assembled, measured local RAG covers your own documents very well — but it isn't the answer to everything. A reference guide owes you that honest map:
By the end, you'll know how to
- Build a complete RAG pipeline — ingestion, chunking, embeddings, index, hybrid search, reranking, generation with citation.
- Wire up Zotero, your email correspondence, or scanned PDFs into a RAG that actually cites its sources.
- Choose chunking, embedder and vector database deliberately, not by default.
- Measure a recall@k before and after a change, instead of assuming "it works better now."
- Move from a hand-rolled script to a framework (LlamaIndex/LangChain) or push AnythingLLM/Open WebUI into advanced settings, depending on what you need.
Living edition — like every BestLLMfor guide
"Free updates for life" isn't a slogan: this guide tracks the RAG ecosystem (embedders, vector databases, frameworks) for you, at no extra cost.
v2026.09 (current edition) — first edition of the guide: 16 chapters, 2 anchor profiles (an 8-16 GB VRAM PC, an Apple Silicon Mac with 24 GB of unified memory), 20-file pack (scripts, templates, comparisons).
Future editions (new embedders, vector databases, frameworks) get added here, dated, and land in your members area at no extra cost.
Frequently asked questions
What is the difference with the Local AI Kit, which already has a RAG chapter?
The Local AI Kit sets up a click-and-go RAG in AnythingLLM or Open WebUI — drag a PDF in, ask a question, it works for occasional use. This guide starts where that chapter stops: measured chunking, embeddings compared side by side, a vector index that holds up at scale, hybrid search, reranking, and above all a method to verify your RAG answers correctly — not just that it answers. Nothing from that chapter is re-explained here; only the advanced settings and the pieces the click-and-go tools don't cover.
What is the difference with the free RAG guides on bestllmfor.com?
BestLLMfor.com's free guides cover each piece separately (ChromaDB on its own, chunking on its own, hybrid BM25 on its own, Zotero on its own...). This guide assembles the full pipeline in order (ingestion, chunking, embeddings, index, hybrid search, reranking, generation, citation, evaluation), connects what each isolated guide leaves disconnected, and hands you the 20 tested files (scripts, templates, comparisons) that no single free guide gives you — you're paying for the assembly and the scripts, not for information that is otherwise free.
Do I need to know Python to follow this guide?
Python 3.10+ is useful and used in most chapters (Ch.4 through Ch.12) — the scripts are provided, meant to be adapted, not written from scratch. Chapter 13 (Open WebUI Knowledge, AnythingLLM in advanced use) stays accessible without writing a line of code. This guide assumes you're comfortable at a command line; if you're starting from zero on local AI, start with the Local AI Kit instead.
How long before I get a concrete first result?
Chapter 1 gives you three quick wins, each under 30 minutes, that apply to a RAG you already have running (a fast audit, switching embedders with one command, requiring a verifiable citation) — you walk away with a measurable improvement before you even touch the full pipeline. Building a complete pipeline on your own corpus (Parts 2 through 4) takes several sessions, not one hour.
What machine does this run on?
Two anchor profiles, named in every example: a PC with 8 to 16 GB of VRAM (the recommended generation model changes depending on which end of that range you're on), or an Apple Silicon Mac with 24 GB of unified memory. In a RAG, the bottleneck is almost never generation — it's ingestion (OCR, embeddings) and index size — so these two profiles cover most real professional and developer setups.
Do my documents stay private?
That's the whole point: the pipeline (ingestion, embeddings, index, generation) runs entirely on your own machine, nothing goes to a third party. Chapter 15 covers specifically what that means for a corpus of email or sensitive documents. For a multi-user enterprise deployment (compliance, server architecture), that's the AI at Work Kit, also on bestllmfor.com — not this guide.
Does the guide cover agents or automation?
Chapter 12 shows the RAG used as a tool by a minimal agent (one agent, two tools) — just enough to understand the pattern, with an explicit pointer to the Local Agents Kit, also on bestllmfor.com, for multi-step orchestration, MCP or workflow tools. That's not the focus of this guide.
What if it doesn't work out for me after buying?
30-day money-back guarantee, one email, no questions asked — like every guide on BestLLMfor.com.
How is it delivered, and for how long?
Instant access after payment: your lifetime members area (always the current edition) plus the PDF and the 20-file asset-pack zip to download, yours forever. Future updates (new embedders, new vector databases, frameworks that change) show up in your members area at no extra cost.
Can I get an invoice?
Yes — a Stripe receipt is emailed automatically as soon as you pay. Invoice on request by replying to the delivery email.
Does the guide stay current? Vector databases and RAG frameworks move fast.
That's the point of free updates for life: when an embedder changes status, a vector database matures, or a framework breaks compatibility, the edition follows — same as every other BestLLMfor guide. Chapter 16 also shows you how to check the freshness of any cited fact yourself between editions.
What if I want more than one guide?
All the kits, for life — the bundle — covers every current and future guide in one lifetime purchase. If you already own one guide, upgrading to the bundle costs less than buying it outright — the discount applies automatically at checkout.
What is local RAG and how is it different from a regular chatbot?
Local RAG (retrieval-augmented generation) means your LLM answers by first searching your own documents, then citing what it found, all on your own machine. Unlike a plain chatbot that answers from memory alone, a local RAG pipeline retrieves the right passage before generating a response, which is what The Local RAG Kit walks you through end to end.
Can you build a RAG chatbot with Ollama that runs entirely offline?
Yes -- Ollama plus a vector database like ChromaDB or Qdrant, wired to a document loader, builds a RAG chatbot that runs 100% offline with no API calls. Getting retrieval accurate enough to trust takes more than a demo, though: chunking, embeddings, and hybrid search all need tuning, which is exactly what the ingestion and retrieval chapters cover.
Is AnythingLLM good enough for a serious local RAG setup?
AnythingLLM works well for occasional, click-and-go questions on a handful of documents, but it isn't built for hundreds of PDFs or a full Zotero library. Once you need measured chunking, hybrid search, reranking, and a verifiable citation on every answer, a hand-assembled pipeline -- covered in this guide -- takes over where AnythingLLM's defaults stop holding up.
Build a RAG that actually holds up.
The reference guide, from your first ingested PDF to a measured, reliable RAG over your entire library — without sending anything to the cloud. Today, not "someday."
Get the kit — $24