---
title: "PDFToChat Upgrades Its Open Source RAG Stack With Hybrid Retrieval"
subtitle: "An open source Next.js template lets you build a hosted PDF chat app with hybrid vector search, no local embedding model required."
url: "https://alphasignal.ai/news/pdftochat-upgrades-its-open-source-rag-stack-with-hybrid-retrieval"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-06-26T14:13:24.000Z"
updated: "2026-08-19T09:14:13.731Z"
type: "Repo"
topics:
  - "Retrieval"
  - "Open Source"
subtopics:
  - "Rag"
  - "Document Understanding"
  - "Embeddings"
upvotes: 17
source_url: "https://github.com/Nutlope/pdftochat"
comments: 0
truncated: true
---

# PDFToChat Upgrades Its Open Source RAG Stack With Hybrid Retrieval

> An open source Next.js template lets you build a hosted PDF chat app with hybrid vector search, no local embedding model required.

Building a PDF chat app used to mean stitching together an embedding model, a vector store, an LLM, auth, storage, and a frontend, then praying the retrieval works well enough that users don't get hallucinated answers. [PDFToChat](https://github.com/Nutlope/pdftochat) is an open source template that solves that plumbing problem end to end, and its latest iteration swaps in a hybrid dense plus sparse retrieval pipeline that runs entirely in the cloud.

The project comes from Hassan El Mghari (Nutlope) and has crossed 1,400 stars on GitHub. It ships as a production ready Next.js app you can fork, drop API keys into, and deploy on Vercel. A hosted demo lives at [pdftochat.com](https://www.pdftochat.com/) where you can have a conversation with your papers, textbooks, and contracts for free.

## What's under the hood

The stack is deliberately opinionated, with each piece handling one job. It uses Next.js App Router for the framework, Mixtral through Together AI inference for the LLM, Chroma Cloud for vector search (hybrid dense plus sparse via Qwen and SPLADE), LangChain.js for the RAG code, Bytescale for the PDF storage, Vercel for hosting and for the postgres DB, Clerk for user authentication, and Tailwind CSS for styling.

The interesting change in the current version is retrieval. Embeddings are generated automatically by Chroma Cloud using Qwen for dense vectors and SPLADE for sparse ones, combined via Reciprocal Rank Fusion at query time. No local embedding model is needed. If you have not touched retrieval in a while, SPLADE is a learned sparse model that produces something closer to a smart bag of keywords, while Qwen embeddings capture semantic meaning. Reciprocal Rank Fusion is a simple algorithm that merges two ranked lists by summing the reciprocals of each document's rank in each list, so items that show up highly in either retriever bubble to the top.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [Nutlope/pdftochat on GitHub](https://github.com/Nutlope/pdftochat)
- [PDFtoChat hosted demo](https://www.pdftochat.com/)
- [Chroma Cloud](https://www.trychroma.com/)
- [Together AI](https://togetherai.link)
