Skip to main content

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

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)

Source distribution for adv-rag-eval 0.1.2
File Size Uploaded
adv_rag_eval-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adv-rag-eval 0.1.2
File Interpreter ABI Platform
adv_rag_eval-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page