Flex Utils - Free online tools including calculators, image compressor, and AI utilitiesFlex Utils - Free online tools including calculators, image compressor, and AI utilities

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

ai document qa
document question answering
pdf qa

Loading Document Q&A...

How to Use
  1. Upload one or more documents (PDF, Markdown, or TXT files).
  2. Wait for the document to be processed (text extraction, chunking, and embedding).
  3. Type your question in the input field and press Enter or click Send.
  4. View the AI-generated answer with cited source passages from your documents.
How it Works

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.

Privacy & Security

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
Frequently Asked Questions