Chat with your PDFs

Build a chat-with-your-PDFs app

"Talk to my PDFs" is the most common RAG project: upload manuals, papers, contracts or course notes and ask questions in plain English. It uses the same retrieval stack as our RAG guide, but PDFs add their own problems: messy text extraction, scanned pages, tables and the need to cite page numbers.

Uses the picker's RAG / docs Q&A stack, with advice specific to this use case.

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. Collect 10 representative PDFs and write 10 questions with known answers and page numbers.
  2. Extract the text and read it. If pages come out empty, they are scanned images and need OCR (or a parser like LlamaParse) before anything else.
  3. Chunk by page or section, keep the file name and page number as metadata, and embed into a local Chroma collection.
  4. Answer with the top 4-6 chunks and show citations like "manual.pdf, p. 12" under every answer.
  5. Check your 10 test questions, tune chunk size and top-k until they pass, then add an upload UI and deploy.

Common pitfalls

FAQ

Can I chat with PDFs without coding?

Yes. Dify (free Sandbox plan, 50 documents) and Voiceflow both offer knowledge bases you can upload PDFs to and chat with, no code needed.

Why does my PDF chatbot give wrong answers?

Usually because the text extraction is bad (scanned pages, tables, columns) or the chunks are too small or too large. Inspect the extracted text and test with questions you know the answers to.

Do I need a vector database?

For a handful of short PDFs you can paste the text straight into a long-context model. Past that, a vector store like Chroma (free, local) keeps costs and latency down.

Try it in the picker: Talk to my PDFs · Chat with my PDF lecture notes · Answer questions from our product manuals

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