All projects

Personal project · 2026

Lumen

Ask questions about your own documents and get answers that cite the exact page, with every model running on your machine.

Year
2026, May to June
Runs
Fully on-device
Role
Design and development, personal project
Stack
Python, FastAPI, LangChain, Ollama, ChromaDB, Next.js, TypeScript

Try it

Lumen with its three sample documents. The suggested questions show the answers Lumen gave, recorded with their evidence. Ask your own and this page finds the best matching sentences, in your browser, with no model.

About the project

A research assistant for your own files. Lumen answers plain-language questions about uploaded PDFs and Office documents, and cites the exact page behind each answer, so every claim can be checked. The models run on the computer itself.

What I built

  • A retrieval pipeline in Python with FastAPI and LangChain, using ChromaDB for vector storage, hybrid retrieval and reranking.
  • Local models through Ollama, so the documents and the questions stay on the device.
  • Page-level citations for every answer.
  • A Next.js and TypeScript front end.
How Lumen finds an answer: a sequence diagram with the user, the Lumen API, Ollama, the index (ChromaDB and BM25) and the reranker, in eight numbered steps. User User Lumen API Ollama Chroma + BM25 Reranker Lumen API Ollama Chroma + BM25 Reranker loop [each of the 3 queries] question 1 rewrite + 3 queries 2 MMR + BM25 3 candidates, fused (RRF) 4 re-score, keep top-N 5 prompt + evidence [N] 6 answer, token by token 7 answer + file + page 8

How an answer is found

From a question to a cited answer

What I learned

To build retrieval people can trust: hybrid search with reranking, models running on the device and a source for every claim.