Official code + data + model releases for the With Argus Eyes paper.
This repo provides: (1) the full dataset construction pipeline (Wikidata/Wikipedia), (2) released processed artifacts for reproducibility, (3) released model checkpoints, and (4) an easy notebook/script workflow to score Retrieval Probability Score (RPS) for your own text.
This repository is the reference implementation for With Argus Eyes. It is designed so that an external user can:
Scope note. This repo focuses on the dataset + experimental pipeline used in the paper (not a full production RAG system).
label + context pairs.Because the full pipeline starts from large external resources (Wikidata/Wikipedia), we separate raw sources from released artifacts:
data/ and/or made available as downloads).
interim/ artifact containing the outputs of the first four dataset-construction stages. This includes processed entity-level resources derived from the large-scale Wikidata/Wikipedia pipeline, covering approximately 7M processed entities. Users can unzip this artifact under data/ and continue the remaining pipeline stages to reconstruct the final dataset. Download the artifact here: interim.zip.If you do not want to rerun the heaviest preprocessing stages, download the released interim.zip artifact and unzip it under data/:
unzip interim.zip -d data/
We release the model checkpoints used in the paper (and fine-tuned variants). These are distributed via Hugging Face so users can reproduce results or swap in a new model.
Links: The Hugging Face dataset/model identifiers are listed in the docs (see
docs/DATASET.mdanddocs/MODELS.md).
.
βββ configs/ # Runnable experiment + pipeline configs (dataset, training, etc.)
βββ scripts/ # CLI entry points (pipeline stages, training, evaluation, scoring)
βββ src/with_argus_eyes/ # Importable package (core implementation)
βββ data/ # Data layout (raw/intermediate/processed) + policies
βββ outputs/ # Reproducible artifacts: metrics, logs, plots, (optional) checkpoints
βββ docs/ # Full instructions (dataset, models, reproduce)
βββ paper/ # Paper sources (LaTeX, figures, bibliography)
βββ utils/ # Small shared helpers
We recommend using a clean environment (venv/conda) to avoid dependency conflicts.
Clone and install in editable mode:
git clone https://github.com/ZeinabTaghavi/With_Argus_Eyes.git
cd With_Argus_Eyes
pip install -e .
If you prefer pinned dependencies:
pip install -r requirements.txt
The dataset pipeline builds curated labels and context pairs from Wikidata/Wikipedia and computes RPS to identify high-risk entities.
docs/DATASET.mdconfigs/dataset/scripts/dataset/Typical usage:
bash configs/dataset/run_all.sh
The pipeline writes intermediate/processed artifacts under
data/(seedata/README.mdfor the exact layout and what is tracked vs. generated).
Training and analysis are orchestrated via configuration files and implemented as scripts.
docs/MODELS.mdconfigs/training/scripts/training/Typical usage:
bash configs/training/run_all.sh
The easiest way to use ARGUS on your own text is the interactive notebook:
notebooks/argus_text_risk_demo.ipynbnotebooks/argus_text_risk_demo.pyThe notebook lets users paste raw text, choose a retriever, configure the NER model, set GPU IDs and Hugging Face cache paths, and compute Retrieval Probability Score (RPS) for extracted entities. High RPS means the entity is expected to be easier to retrieve; low RPS highlights a possible retrieval gap.
Run the notebook:
jupyter notebook notebooks/argus_text_risk_demo.ipynb
For easier debugging, run the matching Python script. It follows the same procedure as the notebook and prints each step, the extracted entities, the RPS table, and compact JSON with only entity names and RPS values:
python notebooks/argus_text_risk_demo.py --help
python notebooks/argus_text_risk_demo.py --text "Zurich is home to ETH Zurich."
python notebooks/argus_text_risk_demo.py --text-file my_text.txt --retriever contriever
The first run may download the configured NER model (dslim/bert-base-NER by default) or the selected embedding model if they are not already cached.
Advanced/batch use. Script 14 is still available for users who already have prepared label + context pairs and want a lower-level scoring utility. See docs/MODELS.md and scripts/training/14_Score_Label_Context_Pairs.py.
Figure mappings and exact reproduction steps are documented in:
docs/REPRODUCE.mdBy design, figure reproduction reads from artifacts under outputs/.
This project can include large processed artifacts under data/. If you only want the code, consider sparse checkout (example):
git clone --filter=blob:none --no-checkout https://github.com/ZeinabTaghavi/With_Argus_Eyes.git
cd With_Argus_Eyes
git sparse-checkout init --cone
git sparse-checkout set configs docs scripts src utils pyproject.toml requirements.txt README.md LICENSE
git checkout
If you use this code, data, or models, please cite the paper:
@article{taghavi_with_argus_eyes,
title = {With Argus Eyes},
author = {Taghavi, ZeinabSadat and collaborators},
journal = {arXiv/venue TBD},
year = {2026},
}
Replace the BibTeX entry above with the final (camera-ready) BibTeX once available.
This project builds on public knowledge bases including Wikidata and Wikipedia.
Funding (optional but recommended if required by the grant). If applicable, include your funding statement here, e.g.:
MIT. See LICENSE.
62 commits
Python
86.7%
TeX
6.8%
Jupyter Notebook
3.5%
Shell
3.0%
Official code + data + model releases for the With Argus Eyes paper.
This repo provides: (1) the full dataset construction pipeline (Wikidata/Wikipedia), (2) released processed artifacts for reproducibility, (3) released model checkpoints, and (4) an easy notebook/script workflow to score Retrieval Probability Score (RPS) for your own text.
This repository is the reference implementation for With Argus Eyes. It is designed so that an external user can:
Scope note. This repo focuses on the dataset + experimental pipeline used in the paper (not a full production RAG system).
label + context pairs.Because the full pipeline starts from large external resources (Wikidata/Wikipedia), we separate raw sources from released artifacts:
data/ and/or made available as downloads).
interim/ artifact containing the outputs of the first four dataset-construction stages. This includes processed entity-level resources derived from the large-scale Wikidata/Wikipedia pipeline, covering approximately 7M processed entities. Users can unzip this artifact under data/ and continue the remaining pipeline stages to reconstruct the final dataset. Download the artifact here: interim.zip.If you do not want to rerun the heaviest preprocessing stages, download the released interim.zip artifact and unzip it under data/:
unzip interim.zip -d data/
We release the model checkpoints used in the paper (and fine-tuned variants). These are distributed via Hugging Face so users can reproduce results or swap in a new model.
Links: The Hugging Face dataset/model identifiers are listed in the docs (see
docs/DATASET.mdanddocs/MODELS.md).
.
βββ configs/ # Runnable experiment + pipeline configs (dataset, training, etc.)
βββ scripts/ # CLI entry points (pipeline stages, training, evaluation, scoring)
βββ src/with_argus_eyes/ # Importable package (core implementation)
βββ data/ # Data layout (raw/intermediate/processed) + policies
βββ outputs/ # Reproducible artifacts: metrics, logs, plots, (optional) checkpoints
βββ docs/ # Full instructions (dataset, models, reproduce)
βββ paper/ # Paper sources (LaTeX, figures, bibliography)
βββ utils/ # Small shared helpers
We recommend using a clean environment (venv/conda) to avoid dependency conflicts.
Clone and install in editable mode:
git clone https://github.com/ZeinabTaghavi/With_Argus_Eyes.git
cd With_Argus_Eyes
pip install -e .
If you prefer pinned dependencies:
pip install -r requirements.txt
The dataset pipeline builds curated labels and context pairs from Wikidata/Wikipedia and computes RPS to identify high-risk entities.
docs/DATASET.mdconfigs/dataset/scripts/dataset/Typical usage:
bash configs/dataset/run_all.sh
The pipeline writes intermediate/processed artifacts under
data/(seedata/README.mdfor the exact layout and what is tracked vs. generated).
Training and analysis are orchestrated via configuration files and implemented as scripts.
docs/MODELS.mdconfigs/training/scripts/training/Typical usage:
bash configs/training/run_all.sh
The easiest way to use ARGUS on your own text is the interactive notebook:
notebooks/argus_text_risk_demo.ipynbnotebooks/argus_text_risk_demo.pyThe notebook lets users paste raw text, choose a retriever, configure the NER model, set GPU IDs and Hugging Face cache paths, and compute Retrieval Probability Score (RPS) for extracted entities. High RPS means the entity is expected to be easier to retrieve; low RPS highlights a possible retrieval gap.
Run the notebook:
jupyter notebook notebooks/argus_text_risk_demo.ipynb
For easier debugging, run the matching Python script. It follows the same procedure as the notebook and prints each step, the extracted entities, the RPS table, and compact JSON with only entity names and RPS values:
python notebooks/argus_text_risk_demo.py --help
python notebooks/argus_text_risk_demo.py --text "Zurich is home to ETH Zurich."
python notebooks/argus_text_risk_demo.py --text-file my_text.txt --retriever contriever
The first run may download the configured NER model (dslim/bert-base-NER by default) or the selected embedding model if they are not already cached.
Advanced/batch use. Script 14 is still available for users who already have prepared label + context pairs and want a lower-level scoring utility. See docs/MODELS.md and scripts/training/14_Score_Label_Context_Pairs.py.
Figure mappings and exact reproduction steps are documented in:
docs/REPRODUCE.mdBy design, figure reproduction reads from artifacts under outputs/.
This project can include large processed artifacts under data/. If you only want the code, consider sparse checkout (example):
git clone --filter=blob:none --no-checkout https://github.com/ZeinabTaghavi/With_Argus_Eyes.git
cd With_Argus_Eyes
git sparse-checkout init --cone
git sparse-checkout set configs docs scripts src utils pyproject.toml requirements.txt README.md LICENSE
git checkout
If you use this code, data, or models, please cite the paper:
@article{taghavi_with_argus_eyes,
title = {With Argus Eyes},
author = {Taghavi, ZeinabSadat and collaborators},
journal = {arXiv/venue TBD},
year = {2026},
}
Replace the BibTeX entry above with the final (camera-ready) BibTeX once available.
This project builds on public knowledge bases including Wikidata and Wikipedia.
Funding (optional but recommended if required by the grant). If applicable, include your funding statement here, e.g.:
MIT. See LICENSE.
62 commits
Python
86.7%
TeX
6.8%
Jupyter Notebook
3.5%
Shell
3.0%