Skip to main content

attune-verify

Generation fact-checker for the attune-* family. Verifies named entities in LLM-generated content actually exist — imports import, CLI flags are real, links resolve, counts match source — so hallucinations that pass unit tests are caught before they reach a reader.

Install

pip install attune-verify

With the optional LLM semantic layer (requires attune-rag):

pip install 'attune-verify[rag]'

Quick start

from attune_verify import verify, VerifyContext
from pathlib import Path

ctx = VerifyContext(
    project_root=Path("."),
    allowed_help_cmds=frozenset(["attune"]),
)
result = verify(generated_content, ctx)
if not result.ok:
    for f in result.findings:
        print(f"{f.kind}: {f.detail}")

Part of the attune family

  • attune-rag grounds generation in accurate retrieved sources (input-side)
  • attune-verify checks that named entities in the output actually exist (output-side)

Together they bracket generation: rag verifies "is this claim supported?"; verify checks "does this named thing exist?"

Status

Alpha — the deterministic core (imports, flags, links, counts) is shipped and guarded by a labeled precision/recall corpus (gated ≥ 0.95 each) and mutation testing (gated ≥ 0.75). The LLM semantic layer is optional via the [rag] extra.

License

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attune_verify-0.2.2.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

attune_verify-0.2.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file attune_verify-0.2.2.tar.gz.

File metadata

  • Download URL: attune_verify-0.2.2.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for attune_verify-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f1dee7d03de2854f417d251133456aec6972f6c420619ac9011f1841352e59c1
MD5 7bfb0c4e1a0140bc2a81ffa152a9019a
BLAKE2b-256 056996c1e219dd215443a317949ea9d3bee3ed608975bb36cb8b50660d9d595b

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_verify-0.2.2.tar.gz:

Publisher: publish-pypi.yml on Smart-AI-Memory/attune-verify

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

File details

Details for the file attune_verify-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: attune_verify-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for attune_verify-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e23786a37fa7011587d6f0c1592e5f675b49e35d346538122510f603d8d5fde
MD5 1720533d231e33c98a98ec577eae405a
BLAKE2b-256 c727484921eb1da4e4572c726dac9414ddc8c8ce5f1403c5cf04c76a99ee61d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_verify-0.2.2-py3-none-any.whl:

Publisher: publish-pypi.yml on Smart-AI-Memory/attune-verify

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 Sentry Error logging StatusPage Status page