AI Document Q&A
Ask questions about your PDF, Markdown & text documents using AI. Privacy-first RAG pipeline with vector search runs 100% in your browser
Loading Document Q&A...
- Upload one or more documents (PDF, Markdown, or TXT files).
- Wait for the document to be processed (text extraction, chunking, and embedding).
- Type your question in the input field and press Enter or click Send.
- View the AI-generated answer with cited source passages from your documents.
This tool uses a full Retrieval-Augmented Generation (RAG) pipeline running entirely in your browser:
1. Extract Text
Text is extracted from uploaded PDFs, Markdown, or plain text files.
2. Chunk into Passages
Documents are split into overlapping passages using a sliding window approach.
3. Embed with AI
Each passage is embedded using nomic-embed-text-v1.5 into 256-dimensional vectors.
4. Vector Search
Your question is embedded and matched against passages using Orama vector search.
5. Cross-Encoder Reranking
Top candidates are reranked with bge-reranker-base for precision.
6. Generate Answer
Qwen2.5-0.5B generates a concise answer from the top-ranked passages.
All processing happens entirely in your browser. No documents or questions are ever sent to external servers.
- • Documents are processed locally using Web Workers
- • AI models run on-device via WebGPU or WASM
- • No data leaves your browser at any point
- • Models are cached locally after first download
- • Perfect for confidential, proprietary, or sensitive documents