Adversarial RAG Evaluator (adv-rag-eval)
A fully local, zero-cost, privacy-first Python library to evaluate Retrieval-Augmented Generation (RAG) pipelines for hallucinations.
Instead of paying for expensive cloud APIs (like GPT-4) to judge your AI outputs, adv-rag-eval downloads a proprietary, fine-tuned Llama-3-8B model directly to your machine. It runs completely offline using llama-cpp-python, ensuring your enterprise data never leaves your local environment.
Features
- 100% Local & Private: No API keys, no data sent to OpenAI or Anthropic.
- Edge-Optimized: Compressed to a 4.9GB GGUF file. Runs smoothly on consumer laptops (RTX 3050, Mac M-series, or even pure CPU).
- Auto-Provisioning: Automatically downloads and caches the inference engine from Hugging Face on the very first run.
- Surgical Detection: Specifically fine-tuned on synthetic adversarial datasets to catch the three most dangerous RAG failure modes.
Installation (No C++ Build Tools Required!)
Because this library relies on a highly optimized C++ inference engine, standard installation might throw compiler errors on Windows. To bypass this, install the pre-compiled engine for your specific hardware first:
For standard laptops (CPU Only):
pip install llama-cpp-python --no-cache-dir --only-binary llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
pip install adv-rag-eval
**For Windows/Linux with Nvidia GPUs (CUDA 12.2):**
```bash
pip install llama-cpp-python --no-cache-dir --only-binary llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu122
pip install adv-rag-eval
**For Mac (Metal / Apple Silicon):**
```bash
CMAKE_ARGS="-DGGML_METAL=on" pip install llama-cpp-python
pip install adv-rag-eval
Metadata
Release files for adv-rag-eval 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adv_rag_eval-0.1.2.tar.gz | 3.4 kB | Without provenance | Details for adv_rag_eval-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adv_rag_eval-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for adv_rag_eval-0.1.2-py3-none-any.whl |
Total release size: 7.0 kB
Release files / adv_rag_eval-0.1.2.tar.gz
| Download URL | adv_rag_eval-0.1.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e57c084111133ee7c1c9e47fb6123ed714d77d075dc3a6ccaaa9320c18e2c74e
|
|
BLAKE2b-256 checksum How to use checksums |
e5e6c4623b1733e4d91b52b55567aea81c3023f38cf87ec19e07f4a1e1615cd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / adv_rag_eval-0.1.2-py3-none-any.whl
| Download URL | adv_rag_eval-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fee0eba67a2f82867cad652a710ba727e70fd9cc3ba08de51159ced2f957a409
|
|
BLAKE2b-256 checksum How to use checksums |
41337fe0d33b5740434ed3da3f24b0d83afdcf21056497a01c5f12d4b2d75cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for adv-rag-eval 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.