Building Privacy-First Vector Search Pipelines With Local LLMs
summary
Privacy-first RAG pipeline that runs entirely on a laptop demo builds embeddings with Nomic embedded text v1.5, serves inference with GEMMA 4 E4B via Olama + OpenCode and orchestrates retrieval through a custom MCP server into Quadrant + SQLite. Corpus: 40 synthetic loan PDFs → 178 pages → 481 chunks (≈180 words, 30-word overlap). Demo returns cited answers (one query ~27.8s, another ~22s), enforces docker microVM sandboxing, blocks unauthorized network calls, and successfully distinguishes vector semantic retrieval from exact SQL queries.
AI-written summary · about
chapters (24)
- 0:00Introduction and motivation
- 3:54Four layers of privacy first
- 8:29Why local AI is gaining traction
- 12:26What is RAG and why it matters
- 15:17Embeddings and vector search
- 18:48Semantic vs structured retrieval
- 21:38Agents and their risks
- 23:05Model Context Protocol explained
- 26:19Agent sandboxing and protection
- 29:52Privacy first vs offline forever
- 31:42Architecture overview
- 35:11Demo setup and preparation
- 38:01Step 1 pre-flight validation
- 39:23Step 2 inspecting the corpus
- 40:28Step 3 reingestion pipeline
- 43:14Step 4 cited evidence inspection
- 44:43Step 5 SQL query demonstration
- 45:45Step 6 retrieving repayment rows
- 46:48Step 7 discovering MCP tools
- 47:34Step 8 agent tool calls
- 49:01Step 9 unsupported question handling
- 51:30Step 10 network boundary validation
- 54:05Clusters and multi-team setups
- 55:14Summary and closing
