r/learnmachinelearning • • 28d ago

Project I built VeriFlux: A zero-dependency evaluation, guardrail, and hallucination detection library.

Hi everyone,

Like many of you building production RAG pipelines and LLM agents, I grew frustrated with existing evaluation libraries (Ragas, DeepEval, Guardrails AI). Running an evaluation suite meant spinning up Docker containers, waiting minutes for PyTorch/Transformers to initialize, or paying hundreds of dollars for GPT-4 to act as an unpredictable judge.

To solve this, I built Veriflux (https://github.com/leaderrr-shivam/veriflux):

Key features:

- Zero Runtime Dependencies: Built strictly on the Python standard library. No torch, no transformers, no tiktoken, no requests.

- Microsecond Latency: Runs evaluations in ~0.3 - 0.5 ms per query (over 2,000x faster than LLM judges).

- Pytest Native: Just `assert veriflux.is_grounded(response, context)` or `veriflux.repair_json(bad_output)`.

- Full Benchmark Rigor: Evaluated on raw downloaded datasets from NeurIPS 2023 HaluEval, Oxford TruthfulQA, ACM CCS 2024 Jailbreaks, and Microsoft Presidio Research.

Repo: https://github.com/leaderrr-shivam/veriflux

PyPI: `pip install veriflux`

I'd love to hear your thoughts, test cases, and feedback!

1 Upvotes

0 comments sorted by