doc q&a
Embeddings, retrieval and the LLM all run in your browser — the document never leaves your device.
answer
A full retrieval-augmented-generation pipeline in the tab: pdf.js extracts the text, it's
chunked and embedded with MiniLM, the most relevant passages are retrieved by cosine
similarity, and a local LLM answers with page citations. Nothing is uploaded.