Skip to main content

AI evals framework for data & analytics engineering teams.

Project description

evaldata

CI Coverage License: Apache 2.0

The evaluation framework for AI-generated SQL.

Evaluate AI-generated SQL in your warehouse and catch regressions when prompts, models, or code change.

Pytest-native. CI-friendly. Built for data teams.

Install

uv add evaldata                # core (includes the DuckDB adapter)
uv add "evaldata[postgres]"    # + Postgres adapter
uv add "evaldata[databricks]"  # + Databricks adapter
uv add "evaldata[litellm]"     # + litellm, to call a model as the AI under test

DuckDB, Postgres, and Databricks are the adapters available today. Snowflake and BigQuery are planned.

Examples

Runnable examples in examples/:

Example Shows
Deterministic Every expected-type and scorer with fixed SQL — no model or network
Local AI A self-hosted Ollama model as the AI under test, via litellm
Hosted AI Hosted-model plumbing, mocked so it runs without a live call or key

See examples/README.md for details.

Develop locally

git clone https://github.com/monospaceai/evaldata.git
cd evaldata
uv sync                       # core + dev tooling
uv run pre-commit install
just check                    # lint + typecheck + tests with coverage (runs everything)

just check runs lint, typecheck, and tests with coverage (held at 100%). See the justfile for the full set of commands.

Platform e2e tests

Adapter conformance for real platforms is marked e2e. CI provisions Postgres as a service container and runs the suite on every push, so the Postgres adapter is exercised against a real engine on every change.

Run it locally against Postgres with:

docker compose up -d                  # postgres:17 on localhost:5432
uv run --extra postgres pytest -m e2e # connection via POSTGRES_TEST_* env (defaults match compose)

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

evaldata-0.3.0.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

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

evaldata-0.3.0-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file evaldata-0.3.0.tar.gz.

File metadata

  • Download URL: evaldata-0.3.0.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for evaldata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4a1fcdff0ecdfc9b3d6aad7f9e29bc754f2b6aad7caad567ac560b8ad541604a
MD5 1cce9e62be1942f728e10f2f80fb03b9
BLAKE2b-256 8961e081547fb2fe17d042081b82653e081b885b38962e90b24b7c563b069e80

See more details on using hashes here.

File details

Details for the file evaldata-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: evaldata-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for evaldata-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f949e9eaeb0615135200f3727db79d8a29e74fc39862596bb8a024137412a6d
MD5 df22222903dd08613978278fd7320d4a
BLAKE2b-256 31e84ec45da66f1f1f9dc6db643480fb42d5039735b860129e10a46944566579

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