BestLLMfor Your hardware. Your LLM. Your call.
◆ The kits◆ Kits APIOpen data Find my LLM

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

Instant access (members area + PDF) Secure Stripe checkout 30-day money-back guarantee Living edition (free updates for life)

See all 16 chapters →

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.
The Local RAG Kit cover — Local RAG

✓ 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).

$24 One-time payment · free updates for life 30-day guarantee — not convinced, refunded in one email A handful of scattered free RAG guides plus hours of assembly. This guide: $24, the pipeline already assembled and tested.

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 RAGPaste everything into the LLM
Holds up on hundreds of documentsYesLimitedNo
Verifiable citation, every timeYes, requiredRarely reliableNo
Hybrid search (identifiers, proper nouns)Yes (BM25 + vector)NoNot applicable
Measured quality (recall@k before/after)Yes, protocol includedNoNo
SetupSeveral sessions, a proper pipelineA few minutesInstant
Privacy (100% local)YesYesDepends on the LLM used
CostNo monthly cost, once set upNo monthly costContext 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

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.

Part 1 — Foundations of a RAG that holds up
  • 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
Part 2 — Ingestion: beyond the clean PDF
  • 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
Part 3 — The engine: embeddings, index, retrieval
  • 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
Part 4 — Orchestrate, measure, make it reliable
  • 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.

$24
One-time payment · free updates for life
A handful of scattered free RAG guides, plus hours of assembly and testing. This guide: $24 once, pipeline already assembled.
30-day money-back guarantee — one email, no questions asked.
  • 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 — $24

Secure 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:

This guide winstotal privacy · verifiable citation · holds up on hundreds of documents · measured quality, not assumed · no monthly cost once set up
Click-and-go or the cloud keep the edgeoccasional use on 2-3 documents · instant setup with no scripts · multi-user enterprise deployment · multi-step agent orchestration

By the end, you'll know how to

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.

CHANGELOG.md — included in the pack

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