Skip to main content

N-gram, embedding, canary, answer-pattern, and corpus contamination auditor.

Project description

contamination-audit

contamination-audit combines n-gram overlap, optional embedding similarity, canary matching, answer-pattern checks, and public-corpus hash matching.

Quickstart

pip install contamination-audit
contamination-audit run --eval-data examples/eval.jsonl --corpora pile,c4,hf-mmlu

By default, embedding checks use a no-dependency lexical cosine fallback. To run semantic embedding checks locally:

pip install 'contamination-audit[embedding]'
contamination-audit run --eval-data examples/eval.jsonl --embedding-backend sentence-transformers --embedding-model all-MiniLM-L6-v2

What This Is Not

Not proof of uncontaminated data; it is a code-only diagnostic. Examples are synthetic.

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

contamination_audit-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

contamination_audit-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file contamination_audit-0.1.1.tar.gz.

File metadata

  • Download URL: contamination_audit-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for contamination_audit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7299ffdeffc53a8b8ddc0cd2e2f4f676ee8c6b75f6627325698a9ab053e9c83f
MD5 8fe1373c43044edca781bfb7bd50bb12
BLAKE2b-256 db0dd3bb379ed9eacb3600c0021ff3a3c4b5a06c9d30937fc9a0b72769f76deb

See more details on using hashes here.

Provenance

The following attestation bundles were made for contamination_audit-0.1.1.tar.gz:

Publisher: release-python.yml on auraoneai/contamination-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file contamination_audit-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for contamination_audit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 264af5d0e95850a778a3dec99312fee86a1f2202df7f8bc6cf4399689157f3ca
MD5 823bef733bfa706ea3fa7a00e8fec18e
BLAKE2b-256 0cc2c4ded1090aadc1f0a0e958055d0b50cc61adef49f86f16c1aba94dfbb470

See more details on using hashes here.

Provenance

The following attestation bundles were made for contamination_audit-0.1.1-py3-none-any.whl:

Publisher: release-python.yml on auraoneai/contamination-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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