PDFSnap is now public!
PDFSnap lets you have real conversations with any PDF. Upload your file and start asking questions instantly.
Get started
by Mohamed Aziz Nacib
Every layer was individually integrated — from vector ingestion to billing webhooks — with production concerns like multi-tenancy, streaming, and edge security in mind.
RAG Pipeline — how a question becomes an answer
Every PDF is split into semantic chunks and passed through OpenAI's embedding model, producing 1 536-dimensional vectors that capture meaning — not just keywords — for precise retrieval.
Vectors are upserted into Pinecone with per-document namespaces for clean multi-tenant isolation. Cosine similarity search retrieves the top-k relevant chunks in single-digit milliseconds.
Retrieved chunks are injected into a carefully engineered system prompt so the model answers from the document itself, not from hallucination. Responses stream token-by-token for instant feedback.
Full Checkout and Customer Portal integration with signed webhook handling for subscription lifecycle events. Plan limits are enforced server-side at both the upload and query layers.
Files land on UploadThing's CDN via presigned URLs. A serverless callback then triggers chunking, embedding, and Pinecone indexing asynchronously — the user never waits for the pipeline.
HS256-signed JWTs live in httpOnly cookies. Route protection runs in Next.js middleware at the Edge before any server component executes — zero auth logic leaks to the client.
1 536
Embedding dimensions
k-NN
Vector similarity search
Edge
Auth middleware layer
100%
Custom-built — no boilerplate
Chatting to your PDF files has never been easier than with PDFSnap.

PDFSnap is a game-changer for students. It swiftly extracts relevant details, making finding answers easier — a personal assistant for academics!

PDFSnap boosts our support efficiency. Instantly retrieving info from manuals helps provide precise and quick responses — an invaluable tool for our team!

PDFSnap simplifies legal documents. It swiftly extracts crucial information, becoming indispensable for accessing case-relevant details.

PDFSnap revolutionized my research! Extracting key info and answering questions is a breeze, saving me valuable time every day.
