Skip to main content

Generation fact-checker for the attune-* family. Verifies named entities in LLM output actually exist — imports import, CLI flags are real, links resolve, counts match source.

Project description

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

Pre-alpha — spec complete, implementation in progress.

License

Apache 2.0

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

attune_verify-0.2.0.tar.gz (15.9 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.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: attune_verify-0.2.0.tar.gz
  • Upload date:
  • Size: 15.9 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.0.tar.gz
Algorithm Hash digest
SHA256 99c40e21ee073a603ef93e45d14c0426518944a69a651030b2cf2195e4f4b84d
MD5 cb7f86fb70b76011a68f211bf8352985
BLAKE2b-256 d82ba2d6760bbcabe2e5650104dbe78d05780355fd73a3dd71ea1551944bbcb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_verify-0.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: attune_verify-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254251bb1d05ab0c7f09fb20446bc0c495286b871397190d96e576c88ec5f295
MD5 c4c75315efb509262b2d35c7b5ab7c7f
BLAKE2b-256 c64efb981eacea35ac80defabb66bb1972f75bc556774fe7517dc69074ff261c

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_verify-0.2.0-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 Pingdom Monitoring Sentry Error logging StatusPage Status page