Fully local, offline question answering over research-paper PDFs. Pages are split into overlapping chunks (kept in a CSV as the source of truth), embedded with mxbai-embed-large into Chroma, and answered by Llama 3 through Ollama. Answers are restricted to retrieved passages and cite page and chunk.
An answer is only useful if you can check where it came from.
What I did
- 01Built the pipeline: PDF parsing, overlapping chunks stored in a CSV, mxbai-embed-large embeddings in Chroma, and Llama 3 via Ollama, all offline.
- 02Restricted answers to retrieved passages, with page and chunk references on every answer.
- 03Known limit, documented in the README: no OCR, so scanned PDFs are out of scope.
Try it
RA-RAG · offline PDF Q&A
Simulated replay over a public paper
Document loaded: “Attention Is All You Need” (Vaswani et al., 2017). Ask something. Try one that isn't in the paper too.
- 1. Embed query · mxbai-embed-large
- 2. Top-k chunks · Chroma
- 3. Grounded answer · Llama 3 · Ollama
Answer
Waiting for a question.
Retrieved passages
—