Skip to main content

GAICo: GenAI Results Comparator

Repository: github.com/ai4society/GenAIResultsComparator

Documentation: ai4society.github.io/projects/GenAIResultsComparator

Overview

GenAI Results Comparator (GAICo) helps you measure the quality of your Generative AI (LLM) outputs. It enables you to compare, analyze, and visualize results across text, images, audio, and structured data, helping you answer the question: "Which model performed better?"

At its core, the library provides a set of metrics for evaluating various types of outputs, from plain text strings to structured data like planning sequences and time-series, and multimedia content such as images and audio. While the Experiment class streamlines evaluation for text-based and structured string outputs, individual metric classes offer direct control for all data types, including binary or array-based multimedia. These metrics produce normalized scores (typically 0 to 1), where 1 indicates a perfect match, enabling robust analysis and visualization of LLM performance.

Quickstart

GAICo's Experiment class offers a streamlined workflow for comparing multiple model outputs, applying thresholds, generating plots, and creating CSV reports.

Here's a quick example:

from gaico import Experiment

# Sample LLM responses comparing different models
llm_responses = {
    "Google": "Title: Jimmy Kimmel Reacts to Donald Trump Winning...",
    "Mixtral 8x7b": "I'm an AI and I don't have the ability to predict...",
    "SafeChat": "Sorry, I am designed not to answer such a question.",
}
reference_answer = "Sorry, I am unable to answer such a question as it is not appropriate."

# Initialize and run comparison
exp = Experiment(llm_responses=llm_responses, reference_answer=reference_answer)
results = exp.compare(
    metrics=['Jaccard', 'ROUGE'],
    plot=True,
    output_csv_path="experiment_report.csv"
)

print(results)

For more detailed examples, please refer to our Jupyter Notebooks in the examples/ folder in the repository.

Features

  • Comprehensive Metric Library

    • Textual similarity: Jaccard, Cosine, Levenshtein, Sequence Matcher
    • N-gram based: BLEU, ROUGE, JS Divergence
    • Semantic similarity: BERTScore
    • Structured data: Planning sequences and time-series metrics
    • Multimedia: Image similarity (SSIM, hash-based) and audio quality metrics
  • Streamlined Evaluation Workflow

    • High-level Experiment class for comparing models, applying thresholds, and generating reports
    • summarize() method for aggregated performance overviews
  • Dynamic & Extensible

    • Register custom metrics at runtime
    • Add your own evaluation criteria easily
  • Powerful Visualization

    • Generate comparative plots automatically
    • Support for bar charts and radar plots
  • Robust & Tested

    • Comprehensive test suite with Pytest
    • Production-ready reliability

Installation

GAICo can be installed using pip.

Create and activate a virtual environment:

python3 -m venv gaico-env
source gaico-env/bin/activate  # On macOS/Linux
# gaico-env\Scripts\activate   # On Windows

Install GAICo:

pip install gaico

This installs the core GAICo library with essential metrics.

Optional dependencies for specialized metrics:

pip install 'gaico[audio]'                       # Audio metrics
pip install 'gaico[bertscore]'                   # BERTScore metric
pip install 'gaico[cosine]'                      # Cosine similarity
pip install 'gaico[jsd]'                         # JS Divergence
pip install 'gaico[audio,bertscore,cosine,jsd]'  # All features

Citation

If you find GAICo useful in your research or work, please consider citing it:

If you find this project useful, please cite our work:

@article{Gupta_Koppisetti_Lakkaraju_Srivastava_2026,
  title={GAICo: A Deployed and Extensible Framework for Evaluating Diverse and Multimodal Generative AI Outputs},
  journal={Proceedings of the AAAI Conference on Artificial Intelligence},
  author={Gupta, Nitin and Koppisetti, Pallav and Lakkaraju, Kausik and Srivastava, Biplav},
  year={2026},
}

Release files for GAICo 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GAICo 0.4.0
File Size Uploaded
gaico-0.4.0.tar.gz 86.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for GAICo 0.4.0
File Interpreter ABI Platform
gaico-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 86.7 MB

Release files / gaico-0.4.0.tar.gz

Download URL gaico-0.4.0.tar.gz
Size 86.7 MB
Tags Source
SHA-256 checksum
How to use checksums
803ba37e98b652d5e78a4262c087e2adfcc48ad31b2e218d4168c2f7eaff4651
BLAKE2b-256 checksum
How to use checksums
b33bb56b53f4a1bdd3e65e477e5f71bbc810ec647fea0cd875d221ded0d08d65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release files / gaico-0.4.0-py3-none-any.whl

Download URL gaico-0.4.0-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41f47780eb32a37a21112b2be55f3b271861799c4919db8b4441acc6efabe222
BLAKE2b-256 checksum
How to use checksums
3a9ee473c1544bd8129e281bdf2388aac4f750e9d44a466afe638f036018845c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page