Skip to main content

Google Colab

  1. Use Pydantic Evals to evaluate your LLM app for a simple question-answering task.
  2. Log your results to Arize AX to track your experiments and traces.

Install dependencies

Setup API keys and imports

Setup Arize AX

Add our auto-instrumentation for OpenAI using arize-otel.

Define the Evaluation Dataset

Create a dataset of test cases using Pydantic Evals for a question-answering task.
  1. Each Case represents a single test with an input (question) and an expected output (answer).
  2. The Dataset aggregates these cases for evaluation.

Setup LLM task to evaluate

Run your experiment and evaluation

View results in Arize AX