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.2.2.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.2.2-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_drift-3.2.2.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.2.2.tar.gz
Algorithm Hash digest
SHA256 444bef93f262ff8f266c13b69ba0a4b64fa7238d1851cf6ae28077bb8b183878
MD5 8fb693a31a799b3a15c5af9c6c64db6a
BLAKE2b-256 b04852ab63a804a9e43e260b49eee1649e1d6ca3bc3a35bd1bf2e8e17813e04e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_drift-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f81ade78cdacdaac2aa222f0172a82a3c779a117f5500737031b8070542ace1
MD5 10144291350790d7784a1d37f2012d25
BLAKE2b-256 00b7c295e2eaafa9953d94cce5d93be26f5b65c7687898cde30a2faed9dc03bf

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