Cover of RAG for Real Users
Books / 745 pages

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

  1. 01Setting Up Your Machine
  2. 02The Question the Model Can't Answer Alone
  3. 03Matching Meaning, Not Words
  4. 04Pieces the Model Can Read Whole
  5. 05Vectors in Postgres
  6. 06Words and Meaning, Together
  7. 07Putting the Right Chunk First
  8. 08Answers With Sources
  9. 09Did the Answers Get Better?
  10. 10Whose Data Is This?
  11. 11Access Rules That Hold
  12. 12Caching Without Leaking
  13. 13When the Help Center Changes
  14. 14Choosing the Model
  15. 15Questions That Need a Plan
  16. 16Building a Knowledge Graph
  17. 17Graph and Search Together
  18. 18What a Filtered Vector Search Actually Returns
  19. 19Can the Eval Numbers Be Trusted?
  20. 20Ship the Assistant

Related projects

Other books