RAG / docs Q&A

Build a docs Q&A (RAG) app

Retrieval-augmented generation (RAG) lets a model answer from your PDFs, notes or wiki. You split documents into chunks, embed them into a vector store, retrieve the most relevant chunks per question, and pass them to the model with the question.

Recommended stack

Model

Framework

Hosting

  • Render: Free instances spin down after 15 min idle, 750 hrs/mo; Postgres free 30 days (verified 2026-10-14)
  • Vercel: Hobby $0 (personal, non-commercial); Pro $20/mo incl. $20 credit (verified 2026-10-14)

No-code alternative

  • Dify: Open source self-host; cloud tiers (not verified - check site)

Rough monthly cost

$0–30/mo (Supabase/Chroma free tier + embeddings + tokens)Approximate

Difficulty

Intermediate

Some links may be affiliate links. Disclosure

Why this stack

Step-by-step

  1. Load 10 representative documents and write 5 test questions with known answers.
  2. Index them with LlamaIndex + local Chroma and check the answers.
  3. Tune chunk size and top-k until the test questions pass, then build a UI.
  4. Show source citations with every answer.

Common pitfalls

Customise this stack in the picker →

📬 The Loadout

One weekly AI build loadout: a project idea, the stack to build it, and the tools worth knowing. Free, unsubscribe anytime.

Subscribe to The Loadout