This folder is the project's persistent data layer. Everything long‑term lives here and is bind‑mounted into the containers, so it all sits in the project root — portable and persistent across restarts/rebuilds.
| Path | What | Created by |
|---|---|---|
dataset/ |
downloaded datasets, set via IR_DATASETS_HOME. Each dataset lives in its own subfolder (dataset/beir/quora/test/…) with a .manifest.json marking a complete download — so datasets are independently deletable |
the POST /dataset/download endpoint |
artifacts/ |
built artifacts: inverted indexes, representations (TF‑IDF/Word2Vec/BERT/BM25), clustering & topic models, and evaluation reports (artifacts/eval/) |
the /build & /evaluate endpoints |
mongo/ |
MongoDB engine files — the raw document store read by id at query time | the doc-store-db (MongoDB) container |
All three are created automatically at runtime (./data:/app/data for the cache + artifacts,
./data/mongo:/data/db for MongoDB).
Bind mounts keep all data inside the project, so it's easy to move, back up, and inspect — copy this folder and everything (datasets, indexes, and the database) goes with it. A Docker named volume would live in Docker's internal storage (the WSL2 VM on Windows), which isn't portable.
Note on MongoDB: running Mongo's engine files on a bind mount works on this setup (Docker Desktop + WSL2/virtiofs). If on another machine Mongo fails to start with a WiredTiger/locking error, switch
doc-store-dbback to a named volume indocker-compose.yml— the raw docs are always re‑ingestable viaPOST /dataset/prepare.
- Back up or move everything:
docker compose down, then copy the wholedata/folder. - Reset the database only:
docker compose down, deletedata/mongo/, then re‑run prepare. - Reset indexes: delete
data/artifacts/. Re‑download the dataset: deletedata/dataset/.
Only this README is tracked in git; the (large) data, artifacts and database files are ignored.