Skip to main content

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


Download files

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

Source Distribution

rag_eval_tool-0.1.9.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

rag_eval_tool-0.1.9-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for rag_eval_tool-0.1.9.tar.gz
Algorithm Hash digest
SHA256 92663fcce28c4f7e5f4206d4e533a9133d18f71cc5b79709a0f924d64d2ffe59
MD5 137d23647798d220043b88d6e4ec5390
BLAKE2b-256 62200958f38ca47dfd510e97d7e199cf1ddfa0c1d1ee2d1254e569fb7080c194

See more details on using hashes here.

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

Hashes for rag_eval_tool-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f7629b9c209fcaeefb92eba5e12f16704ff7c775149f919cfa5f763f4aa4671f
MD5 9578714e36d66c5f1b22afef71a51d08
BLAKE2b-256 bcfd11ee327b7cc6d0d99560817479b45e522ea8afca657585e7bc06fb8c03fc

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