Denspi
Open-source research system that answers open-domain questions by retrieving phrases directly from a 60-billion-phrase index of Wikipedia.
Denspi is a research artifact, and you should treat it as one. Its credible contribution is the phrase-retrieval formulation: indexing 60 billion Wikipedia phrases with BERT dense embeddings plus DrQA TF-IDF sparse vectors, served through Faiss, and hitting about 0.5s whole-Wikipedia inference on CPUs. If you are studying dense-sparse hybrid retrieval or need a reproducible ACL 2019 baseline, this is a direct hit and the Apache-2.0 code is on GitHub. If you want a working QA feature in your product, look elsewhere: DuckDuckGo-style hosted APIs or an Elasticsearch plus reader stack will get you live faster, and DrQA or ColBERT are more actively supported alternatives in the same research
Verified 2d ago · liveness 59/100 · cite: rightaichoice.com/tools/denspi
- NLP researchers working on open-domain QA and dense retrieval
- Graduate students replicating the ACL 2019 experiments
- Academic labs prototyping scalable phrase indexing
- Developers building custom-corpus phrase indices from research code
- Teams that need a hosted, supported QA product with an SLA
- Deployments without 1.5 TB SSD storage and 30 GB RAM available
- Applications needing conversational or multi-turn question answering
We scan live Reddit threads, YouTube comments, X posts, G2 reviews and other communities — and hand you an honest verdict in under a minute.
- Honest verdict, not marketing
- Real pros & cons from real users
- Attributed quotes with receipts
3 free scans · no card needed
Skip Denspi if you want a supported QA service you can call from application code rather than a 2019 research repository you clone, provision 1.5 TB of SSD for, and maintain yourself.
The phrase index dump alone is about 1.5 TB of SSD, and Google Cloud charges for that storage every month you keep the demo running.
Denspi is open-source under Apache-2.0 with no license fee; your real cost is infrastructure. A full Wikipedia setup runs about 1.5 TB of SSD plus 30 GB RAM and at least 4 CPU cores, and training needs roughly 4x P40 GPUs. For students and academic labs that's a cloud-budget line item. Teams that want this capability without operating it should compare against commercial open-domain QA APIs, where you trade the cost of a cluster for per-query billing.
In short
Denspi — Open-source research system that answers open-domain questions by retrieving phrases directly from a 60-billion-phrase index of Wikipedia. Best for NLP researchers working on open-domain QA and dense retrieval, Graduate students replicating the ACL 2019 experiments, Academic labs prototyping scalable phrase indexing. Free to use.
What people actually say about Denspi — is it worth it?
We scanned public community sources for Denspi on Sep 15, 2026 and could not establish that the discussion we found is about this tool rather than something else sharing its name. Only 3 of the posts we fetched could be positively tied to Denspi. Rather than publish a sentiment score built on the wrong subject, we publish nothing here and re-run the scan.
Viability Score
How well maintained and how widely used is Denspi? Built from what the vendor actually publishes (docs, changelog, tutorials, integrations, pricing), whether the site is live, and how much real users discuss it. How we calculate this
Last calculated: September 2026
How we score →Key Features
- End-to-end open-domain QA without a separate retriever-reader pipeline
- Dense-Sparse Phrase Index (DenSPI) for direct phrase retrieval
- Indexes every phrase in Wikipedia — roughly 60 billion phrases
- Real-time inference on CPUs: whole Wikipedia in about 0.5 seconds
- Pretrained Wikipedia QA models provided via Google Cloud Storage
- Open-source code and model weights under Apache-2.0
- BERT-based phrase embeddings (PyTorch with Huggingface BERT)
- Joint dense and sparse retrieval in a single index
- TF-IDF sparse vectors sourced from DrQA
- Faiss 1.5.2 vector search backend
- Custom phrase index building code for non-Wikipedia corpora
- Training code with GPU support (4x P40 24 GB recommended)
- REST API server that returns question embeddings as JSON
- Demo search server with an hdf5-based phrase index
- Google Cloud setup script and local-SSD guidance
About Denspi
Denspi (Dense-Sparse Phrase Index) is an open-source system from the University of Washington NLP group, published at ACL 2019. Instead of the usual two-stage pattern — retrieve documents, then read them with a separate model — Denspi enumerates, embeds and indexes every phrase in Wikipedia (roughly 60 billion phrases), so open-domain QA becomes a pure phrase retrieval problem. Questions are encoded with a BERT-based model and matched against a combined dense and sparse index: dense phrase embeddings balanced against TF-IDF sparse vectors pulled from DrQA, with Faiss handling vector search. The authors report that the pretrained setup can read all of Wikipedia in about 0.5 seconds on CPUs, roughly 58x faster inference than comparable retrieve-and-read models, which is what makes long-tail answers reachable in real time. You install it via Conda (Python 3.6), manually place Faiss 1.5.2 and DrQA, then download about 1.5 TB of model, index and TF-IDF files from a Google Cloud Storage bucket. Serving the API and demo takes under a minute once those files are in place. Training your own model needs roughly 4x P40 (24 GB) GPUs and about 16 hours for three epochs on SQuAD v1.1, plus a finetuning pass with negative samples. It fits NLP researchers and graduate students who want to replicate the ACL 2019 experiments, benchmark open-domain QA, or prototype phrase indexing over a custom corpus — not people who want a hosted, supported QA product.
Behind the Verdict
The interesting bet in Denspi is architectural. Most open-domain QA systems of its era split the job: a retriever narrows millions of documents to a handful, then a reader extracts the span answer. That pipeline caps your latency and, more subtly, caps your recall — if the retriever misses the passage, no reader can recover it. Denspi removes the retriever entirely by precomputing an index over every phrase in Wikipedia, so at query time you do one nearest-neighbour lookup against a joint dense-sparse representation. The dense side is a BERT-based phrase embedding; the sparse side is TF-IDF vectors from DrQA. Faiss handles the vector search, and the paper's headline number is reading the whole of Wikipedia in about 0.5s on CPUs — roughly 58x faster than retrieve-and-read approaches, which is what makes long-tail answers practical rather than theoretical. The practical picture is less glamorous. You need at least 4 CPU cores, 30 GB of RAM and 1.5 TB of SSD for the dump, and the download itself is the first real barrier. Setup assumes a Conda environment on Python 3.6 because Faiss can't be installed via pip, and DrQA has to be installed manually first — the README even notes you'll want java-jdk for it. Two separate requirements.txt files apply, one for the PyTorch question-encoding server and one in the open/ folder for the search server and demo. The payoff is that once files are local, serving takes under a minute. If you intend to train rather than use the pretrained model, the hardware bar jumps: 4x P40 (24 GB) GPUs for the stated batch size, about five hours per epoch over three epochs on SQuAD v1.1 — roughly 16 hours — followed by a finetuning pass with negative samples drawn from other documents. The codebase is a genuine research repository: 250 commits, 200 stars, 23 forks, nine branches, six open issues and five open pull requests. Custom index building code is present in the open/ folder with an updated readme, so indexing a corpus other than Wikipedia is a supported path, not a hack. The honest limitations are the ones the seed notes and the README confirms. Answers are tied to a fixed Wikipedia snapshot. Accuracy degrades on out-of-domain questions. There's no conversational or multi-turn layer. Nothing here is productized: no SLA, no roadmap, no support contract, and the environment pins are from 2019. Compare it to ColBERT or DrQA if you want the same retrieval ideas with more surrounding activity, or to a managed QA API if you want something you don't have to operate. Denspi's value is that it makes a strong, reproducible argument that phrase retrieval is viable at web scale — for a researcher, that's worth the 1.5 TB.
Researching Denspi? Get your full AI stack in 60 seconds.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Real-world workflow fit
Concrete scenarios for the personas Denspi actually fits — and what changes day-one when you adopt it.
Set up a Conda environment on Python 3.6, install Faiss 1.5.2 and DrQA manually, then pull the bert, wikipedia, data, model and dump directories from the denspi Google Cloud Storage bucket. Launch the API on one port and the demo search server from open/ on another.
Outcome: A local demo answering Wikipedia questions in under a minute of startup time, plus the eval data needed to compare against the paper's numbers.
Use the --sparse option in bert.py and the separate TF-IDF vectors from DrQA to toggle the dense and sparse components of the phrase index, measuring how each side affects retrieval on SQuAD v1.1.
Outcome: Concrete ablation numbers on the dense-sparse blend rather than a single opaque accuracy figure.
Replace the Wikipedia dump with a custom corpus using the custom index building code in the open/ folder, then serve it through the hdf5-based demo server with the same question-encoding API.
Outcome: A working phrase-retrieval prototype over domain text, validated before committing to a production retrieval stack.
Use Cases
- Answer factual questions by indexing all of Wikipedia as phrases
- Benchmark open-domain QA systems against the ACL 2019 numbers
- Study the trade-off between dense embeddings and sparse TF-IDF retrieval
- Build a phrase index over a custom corpus using the open/ indexing code
- Reproduce the reported 0.5s CPU inference on a full Wikipedia index
- Serve a local question-answering demo behind a small REST API
Models Under the Hood
as of 2026-09-09
Limitations
- Denspi is a research system, not a maintained product.
- Running the pretrained demo requires at least 4 CPU cores, 30 GB RAM and roughly 1.5 TB of SSD for the phrase index dump, and the download is the first real gate.
- The environment is pinned to Python 3.6 via Conda because Faiss 1.5.2 cannot be installed with pip, DrQA must be installed manually first (java-jdk is typically needed), and two separate requirements.txt files apply.
- Answers are tied to a fixed Wikipedia snapshot, and accuracy drops on out-of-domain questions.
- Training your own model needs about 4x P40 (24 GB) GPUs and roughly 16 hours for three epochs on SQuAD v1.1 plus a negative-sample finetuning pass.
- There is no conversational layer and no production support channel.
as of 2026-09-26
Verification history
We have re-verified Denspi 8 times since . Each pass re-reads the vendor's own pages and re-checks every listed field against that evidence; passes where nothing had changed are marked as such.
- — re-checked, vendor evidence unchanged
- — re-checked, vendor evidence unchanged
- — re-checked, vendor evidence unchanged
- — re-checked, vendor evidence unchanged
- — re-checked, vendor evidence unchanged
- — re-checked, vendor evidence unchanged
Showing the 6 most recent of 8 verification passes.
Free to cite with attribution — this page re-verifies continuously.
Where the pricing makes sense
The company stage and team size where Denspi's pricing actually pencils out — and where peers do it cheaper.
Denspi is open-source under Apache-2.0 with no license fee; your real cost is infrastructure. A full Wikipedia setup runs about 1.5 TB of SSD plus 30 GB RAM and at least 4 CPU cores, and training needs roughly 4x P40 GPUs. For students and academic labs that's a cloud-budget line item. Teams that want this capability without operating it should compare against commercial open-domain QA APIs, where you trade the cost of a cluster for per-query billing.
Setup time & first value
How long it actually takes to get something useful out of Denspi — broken out by persona, not the marketing-page minute.
Expect a half-day to a day for a first run: create the Python 3.6 Conda environment, install Faiss 1.5.2 and DrQA by hand, then download the GCS directories. The 1.5 TB dump dominates wall-clock time. Serving the API and demo takes under a minute once files are local. Training from scratch adds roughly 16 hours on 4x P40 GPUs for three SQuAD v1.1 epochs plus a finetuning pass.
Switching to or from Denspi
How to bring data in from common predecessors and how to get it back out — written for the switcher, not the buyer.
- →From DrQA: reuse its TF-IDF vectors from the gs://denspi/v1-0/wikipedia directory instead of rebuilding them for the sparse side of the index.
- →From a retrieve-and-read pipeline: keep your evaluation set and swap the retriever-reader stages for a single phrase index lookup.
- →From Faiss-based vector search: Denspi uses Faiss 1.5.2 under the hood, so existing index-serving habits transfer directly.
- ↗To ColBERT: carry over the BERT-based late-interaction framing and re-implement retrieval without the precomputed 60-billion-phrase dump.
- ↗To a hosted QA API: swap the local API server for HTTP calls and drop the 1.5 TB storage and 30 GB RAM requirement.
- ↗To a custom FAISS or Elasticsearch stack: export the phrase embeddings and TF-IDF vectors as the basis for your own retrieval service.
Integrations
Resources & Guides
Tutorials & Learning
YouTube returned 6 videos for “Denspi”, and we withheld 6: 6 could not be judged, because “Denspi” is a single word that other videos use for other things. We are showing none, because we could not prove any of them are about Denspi.
Official links
Tools that pair well with Denspi
Common stack mates teams adopt alongside Denspi, with the specific reason each pairing earns its keep.
PaperBrain
Turn open-access research papers into audio podcasts and ask them questions by chat.
Consensus
Consensus is an AI academic search engine that answers research questions with cited evidence from 220M+ peer-reviewed papers.
GPT Researcher
Open-source autonomous research agent that plans, reads sources in parallel, and writes cited reports you host yourself
Featured Head-to-Head Comparisons
Denspi vs Surge Ai
If you are an NLP researcher building a QA system and need a cost-free, open-source solution with GPU support, Denspi is a fit. But if you are an AI lab requiring expert human feedback for RLHF, red teaming, or benchmarking frontier models—with access to writers, doctors, and lawyers—Surge AI is the platform of choice, backed by recent partnerships and novel benchmarks.
Denspi vs Praktika
Praktika and Denspi serve entirely different needs. Praktika is a polished mobile app for language learners wanting to practice speaking through AI tutors, while Denspi is a research prototype for NLP experts who need efficient open-domain QA. Choose based on your goal: fluency or information retrieval.
Alternatives to Denspi
View allPaperBrain
Turn open-access research papers into audio podcasts and ask them questions by chat.
Consensus
Consensus is an AI academic search engine that answers research questions with cited evidence from 220M+ peer-reviewed papers.
GPT Researcher
Open-source autonomous research agent that plans, reads sources in parallel, and writes cited reports you host yourself
Frequently Asked Questions
Categories
Topics
Used Denspi? Help shape our editorial sentiment research.