Browser-native search · Castorini
RAG in a box — right in your browser. Search document collections with DuckDB-Wasm, then generate cited answers with a language model running on your device.
A little more about the build
Built with the Castorini Research Group at Waterloo. I developed browser-native full-text retrieval and BM25 ranking, OPFS-backed persistence, Parquet ingestion, and LLM integration. Ragbox supports NFCorpus and MS MARCO search, with optional WebGPU-powered answer generation through Transformers.js. Retrieval and inference run locally; initial setup downloads the required runtime, indexes, and model.
Explore the code




