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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_drift-3.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 84d6c3fb5763b47167f0e75a5be89751ef4630603f0917f533454a350553bdcc
MD5 e742de94ecd78dd8e8df299e723d29f2
BLAKE2b-256 66de53f4b9827d24e5eeaf3a7a806c3abe6ebd0339d7d82ed0dfe209561e7ba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_drift-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a59743bb974e4abb65c8cc92ed93830d90f7c242e38b2acacc2018b7c5641ec5
MD5 a74802e130d855d3f6eac8c824f71a8e
BLAKE2b-256 7f99f7d1a7cc40b6f3e77f3fdab651c4ecbb127da537597af94dc21f21d907e7

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