Downloads · 30 days
0
StressRAG/StressRAG-Artifacts
StressRAG-Artifacts is a machine learning model from StressRAG. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
For the paper "StressRAG: Finding Brittle Queries in RAG through Evaluator-Aligned and Budget-Aware Test Selection", This reposotey runs evaluation suites for a retrieval-augmented generation (RAG) system and compares…
Downloads · 30 days
0
Access
Public
Updated Jan 29, 2026
Repo size
15.4 GB
Likes
0
Public
Click a slice to open those files.
.index11.5 GB · 75%
From the Hugging Face model README
For the paper "StressRAG: Finding Brittle Queries in RAG through Evaluator-Aligned and Budget-Aware Test Selection", This reposotey runs evaluation suites for a retrieval-augmented generation (RAG) system and compares selection strategies (StressRAG, ARES, RAGAS, Random) on two datasets (TriviaQA and LegalBench). It builds a FAISS vector index, retrieves documents, generates answers with a local Ollama model, and logs retrieval + generation metrics per query and per suite.
main.py: experiment runner (selects suites, runs RAG, logs metrics).baselines.py: ARES and RAGAS selection baselines.evaluators.py: retrieval and generation metrics.utils.py: dataset loading + helper utilities.data/: datasets and corpora.Install dependencies:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
Optional (improves text normalization quality in evaluators):
python -m spacy download en_core_web_sm
The loader expects the following files:
data/
LegalBench/
legal_data.json
legal_data_corpus.json
TriviaQA/
trivia_data.json
trivia_data_corpus.json
main.py)Key knobs at the top of main.py:
DATASET_NAME: "legalbench" or "triviaqa"GEN_MODEL: Ollama model used for answer generation (default phi3:mini)STRONG_AGENT_MODEL: OpenAI model for strong agent (default gpt-5-nano)EMBEDDING_MODEL_ID: sentence-transformers embedding modelCOMPARISON_BASELINES: which strategies to runollama serve
ollama pull phi3:mini
STRONG_AGENT_MODEL):setx OPENAI_API_KEY "your_key_here"
python main.py
The run creates a timestamped results folder:
issta_results_2026_<dataset>/
issta_suite_metrics_<timestamp>.csv
issta_query_details_<timestamp>.csv
experiment_metadata_<timestamp>.json
suite_logs_<seed>_<strategy>_<timestamp>.txt
It also creates or reuses a FAISS index under (if does not exist):
vector_store_mxbai_<dataset>/
issta_retrieval_cache_<dataset>.json exists in the repo root, it will be used to speed up
retrieval scoring. Otherwise, the run will proceed without it (slower).StressRAG from COMPARISON_BASELINES
or switch to StressRAG-NO-AGENT (also called StressRAG-Lite).