Skip to main content

A standalone, zero-cost RAG hallucination evaluator.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adv_rag_eval-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adv_rag_eval-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file adv_rag_eval-0.1.2.tar.gz.

File metadata

  • Download URL: adv_rag_eval-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for adv_rag_eval-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e57c084111133ee7c1c9e47fb6123ed714d77d075dc3a6ccaaa9320c18e2c74e
MD5 ce6183377ef271d211338ca0087b9d1f
BLAKE2b-256 e5e6c4623b1733e4d91b52b55567aea81c3023f38cf87ec19e07f4a1e1615cd4

See more details on using hashes here.

File details

Details for the file adv_rag_eval-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: adv_rag_eval-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for adv_rag_eval-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fee0eba67a2f82867cad652a710ba727e70fd9cc3ba08de51159ced2f957a409
MD5 bb113891a39669b264b21b5df4b7378f
BLAKE2b-256 41337fe0d33b5740434ed3da3f24b0d83afdcf21056497a01c5f12d4b2d75cc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page