A comprehensive evaluation toolkit for RAG and LLMs.
Project description
rag_eval_tool
rag_eval_tool is a Python library designed for comprehensive evaluation of Retrieval-Augmented Generation (RAG) systems and Large Language Models (LLMs). It offers a wide array of metrics to evaluate generated text across fluency, diversity, semantic similarity, readability, hallucination, and bias detection.
Features
- Text Similarity Metrics: BLEU, ROUGE, BERTScore, METEOR, CHRF.
- Fluency and Coherence: Perplexity using GPT-2.
- Lexical Metrics: Diversity and Entropy.
- Readability Scores: Flesch Reading Ease, Flesch-Kincaid Grade Level.
- Bias Detection: Racial bias evaluation using a zero-shot classification model.
- Hallucination Metrics: Quantify unsupported content in generated text.
- Precision/Recall/F1: Measure token overlap between response and reference.
Installation
Install the library directly from PyPI:
pip install rag_eval_tool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rag_eval_tool-0.1.9.tar.gz.
File metadata
- Download URL: rag_eval_tool-0.1.9.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92663fcce28c4f7e5f4206d4e533a9133d18f71cc5b79709a0f924d64d2ffe59
|
|
| MD5 |
137d23647798d220043b88d6e4ec5390
|
|
| BLAKE2b-256 |
62200958f38ca47dfd510e97d7e199cf1ddfa0c1d1ee2d1254e569fb7080c194
|
File details
Details for the file rag_eval_tool-0.1.9-py3-none-any.whl.
File metadata
- Download URL: rag_eval_tool-0.1.9-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7629b9c209fcaeefb92eba5e12f16704ff7c775149f919cfa5f763f4aa4671f
|
|
| MD5 |
9578714e36d66c5f1b22afef71a51d08
|
|
| BLAKE2b-256 |
bcfd11ee327b7cc6d0d99560817479b45e522ea8afca657585e7bc06fb8c03fc
|