Skip to main content

Automatically generate evals for every AI change

Project description

Parity

PyPI License: MIT Python 3.11+

Parity analyzes behavior-defining AI changes in pull requests, discovers the most relevant existing eval target, validates the real coverage gaps, and proposes native eval additions that fit the target suite.

Parity is not an eval runner. It does not create or mutate hosted evaluator infrastructure. It reuses the eval system you already have.

What Parity Does

For each PR that changes prompts, instructions, guardrails, judges, validators, or similar behavior-defining assets, Parity:

  1. Detects the behavioral change.
  2. Resolves the best matching eval target and method.
  3. Validates which gaps are actually uncovered.
  4. Synthesizes native eval additions for that target.
  5. Writes only native_ready evals after explicit approval.

Support

Path Status Notes
Promptfoo Strong Best fully native path. Assertions are row-local and writeback is straightforward.
LangSmith Strong Strong dataset discovery and writeback. Evaluator reuse is supported; evaluator mutation is out of scope.
Braintrust Supported with limitations Writeback works. Target discovery is weaker and evaluator recovery depends more on repo assets.
Arize Phoenix Supported with limitations Dataset read/write works. Evaluator discovery is weaker than Promptfoo and LangSmith.
Bootstrap mode Built in If no safe target is found, Parity proposes starter evals and abstains from unsafe writeback.

More detail: docs/platforms.md

Public Commands

These are the commands most users need:

  • parity init
  • parity doctor
  • parity run-stage 1
  • parity run-stage 2
  • parity run-stage 3
  • parity write-evals

Parity also ships lower-level operational commands for GitHub comments, run lookup, embeddings, and similarity, but those are advanced surfaces rather than the main product path.

Quick Start

pip install parity-ai
parity init

Then:

  1. Fill in the generated context/ files.
  2. Add GitHub secrets: ANTHROPIC_API_KEY, OPENAI_API_KEY, and any platform keys you use.
  3. Commit parity.yaml, .github/workflows/parity.yml, and context/.
  4. Open a PR that changes AI behavior.
  5. Add the fixed approval label parity:approve before merging if you want Parity to write approved evals back after merge.

Docs

License

MIT

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

parity_ai-0.1.14.tar.gz (99.5 kB view details)

Uploaded Source

Built Distribution

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

parity_ai-0.1.14-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file parity_ai-0.1.14.tar.gz.

File metadata

  • Download URL: parity_ai-0.1.14.tar.gz
  • Upload date:
  • Size: 99.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for parity_ai-0.1.14.tar.gz
Algorithm Hash digest
SHA256 da5b0bbc48445585b846a77576a30792164c6cb34a6025f955f205fd8f0ec017
MD5 08cf0ca6fa610a6bb9f18f47bc4a7d9a
BLAKE2b-256 0d289f62e98af99ec115013d1ef28f1fe1bacf9711a1c66baee42f75e92b4a76

See more details on using hashes here.

File details

Details for the file parity_ai-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: parity_ai-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 121.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for parity_ai-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 9f213edf48b4ed6cbfe5f378205f8ea14245ea82db0e03e1f81fbf52ce40e113
MD5 c995ce5af94b8dfcfa61d8d6340addf9
BLAKE2b-256 d4bc979dacaca0fc853081b846df5e7dbdf76ce5adff677d88105ae0dfa8854c

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