Skip to main content

Mathematical drift detection library for calculating drift/hallucination scores between outputs

Project description

CMVK — Verification Kernel — Public Preview

Part of Agent OS - Kernel-level governance for AI agents

PyPI version License: MIT

Basic drift detection between model outputs.

CMVK provides lightweight functions for comparing text and embeddings to detect when model outputs diverge. Use it to verify that two models (or two runs of the same model) produce semantically equivalent results.

Installation

pip install agentmesh-drift

Quick Start

from cmvk import verify

score = verify("def add(a, b): return a + b", "def add(x, y): return x + y")
print(f"Drift: {score.drift_score:.3f}")  # 0.0 = identical

Features

  • Text comparison with drift scoring (0.0–1.0)
  • Embedding and distribution comparison utilities
  • Batch verification with aggregation
  • Zero external service dependencies (numpy only)

License

MIT License - see LICENSE for details.

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

agentmesh_drift-3.7.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_drift-3.7.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_drift-3.7.0.tar.gz.

File metadata

  • Download URL: agentmesh_drift-3.7.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for agentmesh_drift-3.7.0.tar.gz
Algorithm Hash digest
SHA256 a35db6c4764a3cdbcc719bd087ab61053488687241815c6bc96b1ef466658e59
MD5 d3ee00093953595382fb4d74281ea5de
BLAKE2b-256 a03e726280973804d52402d95fc27a0854a8c08c16c382076053454012968dbb

See more details on using hashes here.

File details

Details for the file agentmesh_drift-3.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_drift-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de7305dbc12ce8b0a98fbac685cead7d0e520afc285aefdbabda870f1bcf26d8
MD5 80cc8bf34f849c6e5d3a231f7faac875
BLAKE2b-256 eca95898cd715717b811fecbd3fca3486987c083f1def51609752b18588aca48

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