Skip to main content

Comprehensive AI Model Evaluation Framework with support for multiple LLM providers

Project description

Eval AI Library

Python Version License PyPI

Based on firstlinesoftware/eval-ai-library. This is an independently maintained version with additional features and PyPI distribution.

Comprehensive AI model evaluation framework for RAG systems and AI agents. Supports 35+ evaluation metrics, 12 LLM providers, built-in test data generation from documents, and an interactive web dashboard for visualization and analysis. Implements advanced techniques including G-Eval probability-weighted scoring and Temperature-Controlled Verdict Aggregation via Generalized Power Mean.

Installation

pip install eval-ai-library

Full version with document parsing and OCR support:

pip install eval-ai-library[full]

Lite version (core evaluation only):

pip install eval-ai-library[lite]

Quick Start

from eval_lib import EvalAI

evaluator = EvalAI(model="gpt-4o")

result = evaluator.evaluate(
    input="What is Python?",
    actual_output="Python is a programming language.",
    expected_output="Python is a high-level programming language.",
    metrics=["answer_relevancy", "faithfulness"]
)

print(result.score)

Documentation

Full documentation is available at library.eval-ai.com.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Citation

If you use this library in your research, please cite:

@software{eval_ai_library,
  author = {Meshkov, Aleksandr},
  title = {Eval AI Library: Comprehensive AI Model Evaluation Framework},
  year = {2025},
  url = {https://github.com/meshkovQA/Eval-ai-library.git}
}

References

This library implements techniques from:

@inproceedings{liu2023geval,
  title={G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment},
  author={Liu, Yang and Iter, Dan and Xu, Yichong and Wang, Shuohang and Xu, Ruochen and Zhu, Chenguang},
  booktitle={Proceedings of EMNLP},
  year={2023}
}

Support

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

eval_ai_library-0.7.4.tar.gz (210.2 kB view details)

Uploaded Source

Built Distribution

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

eval_ai_library-0.7.4-py3-none-any.whl (216.8 kB view details)

Uploaded Python 3

File details

Details for the file eval_ai_library-0.7.4.tar.gz.

File metadata

  • Download URL: eval_ai_library-0.7.4.tar.gz
  • Upload date:
  • Size: 210.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for eval_ai_library-0.7.4.tar.gz
Algorithm Hash digest
SHA256 1f3ccda4f18821c844143d7d687316f8e7bb211daf0beb9af9902da76fb2aab0
MD5 f8c823c2aef743ce0b4e938d3f837607
BLAKE2b-256 ba85700fd0647ba08d0dbc90dddccea02ea9dc29598767f1c748b944e1f81223

See more details on using hashes here.

File details

Details for the file eval_ai_library-0.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for eval_ai_library-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c87819388189949e52aef6e8b63a66c2e515b0be4c5a5b2f97f7f6aacbead00
MD5 46e1d3aa66558e766e2bc14a81e99605
BLAKE2b-256 69f4526fc16487ebe52808be0d41eb7c5c01c0936f034587ba55d5e36861c206

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