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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmesh_drift-3.5.0.tar.gz.
File metadata
- Download URL: agentmesh_drift-3.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
686fa169dc0a8a7498c3235c676fef3389fafecd10486cf58f319a2e640b9ee5
|
|
| MD5 |
5f6c43ffe63cadc4befef1bbd6cd66c5
|
|
| BLAKE2b-256 |
ce8287624f3ebbe2031a116d6d26a20922579d9e4e3bf1acf64871ad1416a7b1
|
File details
Details for the file agentmesh_drift-3.5.0-py3-none-any.whl.
File metadata
- Download URL: agentmesh_drift-3.5.0-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab2c04fcaf8fc4571288fc52fc42034fc397d3a157e841ac01ab28ad9636453
|
|
| MD5 |
1c20057d0591f77440cf0fb7539f62af
|
|
| BLAKE2b-256 |
5f597acb61153117dad838a2b517f07b366089405bdecc6fcf8efea0ab357ac3
|