Skip to main content
Prerequisites:
  • Python 3.10+
  • An API key for an LLM provider (e.g., OpenAI, Anthropic, Google)
This guide will walk you through installing SigmaEval, setting up your first evaluation, and running a “Hello World” example.
Recommended: create and activate a Python virtual environment to avoid dependency conflicts.
Create a Python virtual environment:
Activate the Python virtual environment:

Installation

First, install the SigmaEval framework from PyPI.
You will also need to set your API key for the LLM provider you wish to use for the AI Judge. SigmaEval supports 100+ LLM providers via LiteLLM, including OpenAI, Anthropic, Google, and local models via Ollama.

Hello World Example

Here is a minimal, complete example of how to use SigmaEval to test a simple AI application. This example evaluates a bot that is expected to return a friendly greeting.
test_app.py

Interpret the Results

When you run the script, SigmaEval will simulate 20 conversations, have an AI Judge score each one, and then print a summary of the results. The summary shows the overall pass/fail status for the scenario and a breakdown of each expectation. Here’s an example of what the output might look like:
This output confirms that the test passed, along with the p-value for the statistical test.

Next Steps

Now that you’ve run your first evaluation, you can start applying SigmaEval to your own Gen AI applications.