← all repositories
Nutlope/pdftochat

A PDF chat template that leans hard on hybrid search

It wires Together AI, Chroma Cloud, and LangChain into a Next.js app so you can interrogate PDFs without hosting your own embeddings or LLM.

1.4k stars TypeScript RAG · SearchChat Assistants
pdftochat
Not currently ranked — collecting fresh signals.
star history

What it does PDFToChat is a template RAG application that lets users upload PDFs and ask questions about their contents. It stores PDFs via Bytescale, chunks and indexes them in Chroma Cloud using hybrid dense-plus-sparse retrieval, and generates answers with Mixtral through Together AI. The frontend is Next.js with Clerk handling authentication and Vercel hosting the lot.

The interesting bit The project leans on Chroma Cloud to run both Qwen dense embeddings and SPLADE sparse embeddings, then fuses the results with Reciprocal Rank Fusion at query time. That is a lot of search sophistication for a boilerplate, and it means you do not need to run a local embedding model.

Key highlights

  • Hybrid retrieval via Chroma Cloud (Qwen + SPLADE with RRF) with automatic per-document collections
  • LLM inference through Mixtral on Together AI, orchestrated with LangChain.js
  • Auth, storage, hosting, and database are all external SaaS (Clerk, Bytescale, Vercel/Postgres)
  • Future task list is endearingly honest: no delete button, no chat history, no API route auth, and no benchmarks yet

Caveats

  • The future tasks list is longer than the feature list; deleting PDFs, saving chats, protecting API routes, and benchmarking retrieval are all explicitly marked as not yet done
  • Running your own instance requires accounts and API keys for Together AI, Chroma Cloud, Bytescale, Clerk, and Vercel Postgres
  • The README warns that Together AI’s free tier rate limits can block requests until you add a credit card

Verdict Good for developers who want to see how a modern, fully-outsourced RAG stack fits together in Next.js. Skip it if you are looking for a production-ready, self-contained document chat system.

Frequently asked

What is Nutlope/pdftochat?
It wires Together AI, Chroma Cloud, and LangChain into a Next.js app so you can interrogate PDFs without hosting your own embeddings or LLM.
Is pdftochat open source?
Yes — Nutlope/pdftochat is open source, released under the MIT license.
What language is pdftochat written in?
Nutlope/pdftochat is primarily written in TypeScript.
How popular is pdftochat?
Nutlope/pdftochat has 1.4k stars on GitHub.
Where can I find pdftochat?
Nutlope/pdftochat is on GitHub at https://github.com/Nutlope/pdftochat.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.