
RAG for Real Users
Building a support assistant on Postgres, from an empty folder to production
One project from the first chapter to the last: a support assistant for a small analytics product. Search that matches meaning and words, answers with sources, evaluations you can trust, private data per customer, caching without leaks, and a knowledge graph when one search is not enough.
For: A backend developer who writes Python and SQL and has just been asked to add an "ask a question" assistant to a product.
Free PDF. Every output in the book comes from a real run; the first pages say how it was checked.
What's inside
- 01Setting Up Your Machine
- 02The Question the Model Can't Answer Alone
- 03Matching Meaning, Not Words
- 04Pieces the Model Can Read Whole
- 05Vectors in Postgres
- 06Words and Meaning, Together
- 07Putting the Right Chunk First
- 08Answers With Sources
- 09Did the Answers Get Better?
- 10Whose Data Is This?
- 11Access Rules That Hold
- 12Caching Without Leaking
- 13When the Help Center Changes
- 14Choosing the Model
- 15Questions That Need a Plan
- 16Building a Knowledge Graph
- 17Graph and Search Together
- 18What a Filtered Vector Search Actually Returns
- 19Can the Eval Numbers Be Trusted?
- 20Ship the Assistant




