Local RAG Stack: Ollama, Vector Database, and Document Ingestion
A local RAG stack has three cooperating parts: an ingestion pipeline that parses and chunks documents, a vector database that stores and searches embeddings, and a local…
FROM THE AUTHOR
Explore the published guides and contributions from John C. Mullen.
250 published articlesA local RAG stack has three cooperating parts: an ingestion pipeline that parses and chunks documents, a vector database that stores and searches embeddings, and a local…
Multi-turn chatbots hit token limits because every turn re-sends the whole conversation inside a single shared context budget. The fix is a budgeting discipline: measure prompt tokens…
A practical, evidence-led walkthrough of the RAG pipeline that turns internal handbooks, runbooks, and policy pages into a grounded assistant whose answers carry verifiable source citations. It…
Choosing an embedding model for retrieval-augmented generation from a public leaderboard is unreliable, because rankings on generic datasets rarely transfer to your own corpus. This guide lays…
Out-of-memory errors when loading local AI models are usually caused by a mismatch between weight memory, runtime overhead, and available GPU VRAM. This guide shows how to…
Automate prompt testing in WordPress by registering eval suites during wp_ai_evals_init, defining cases with inputs, tasks, expected values, and evaluators, then running tagged subsets in CI. The…
An idempotency key is a client-generated string that lets an API server recognize a retry as the same logical operation instead of a new one. For AI…
Ollama ships with no authentication and binds to localhost:11434 by default, so the first change that makes it reachable from another machine is also the first change…
Spreading a local model across two or more GPUs is a runtime flag decision, not a rebuild. llama.cpp defaults to layer splitting (pipeline parallelism), which pools VRAM…
Ollama performance comes down to two settings: how many tokens the model can hold in memory (context length) and how many of its layers run on the…
Rotating and scoping AI API keys means giving each workload its own credential with only the permissions it needs, replacing it on a schedule, and revoking the…
Automating claim verification means adding a third stage to a RAG pipeline: after the model answers, a separate process splits the answer into claims, matches each claim…