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

  • LlamaIndex: Open source (free); LlamaParse cloud Pay-as-you-go $0/mo with 10K credits included, Pro $500/mo (400K credits) (verified 2026-11-15)
  • LangChain / LangGraph: Open source (free); LangSmith Developer $0 (5k traces/mo), Plus $39/seat/mo (verified 2026-11-15)
  • Chroma: Open source (free); Chroma Cloud Starter $0 + usage with $5 free credits, Team $250/mo (verified 2026-11-15)
  • Supabase (Postgres + pgvector): Free: 500 MB database, 2 active projects, pauses after 1 week idle; Pro from $25/mo (verified 2026-11-15)

Hosting

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

No-code alternative

  • Dify: Open source self-host free; Cloud Sandbox free (200 message credits), Professional $590/yr per workspace (verified 2026-11-15)

Rough monthly cost

$0–30/mo (Supabase/Chroma free tier + embeddings + tokens)Approximate. Tool prices checked 2026-11-15.

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 →

Related stacks

Last updated 2026-11-22.

📬 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