Skip to main content

Aether KG Eval

Importable Python SDK for evaluating knowledge-graph builders against benchmark KG datasets.

The core customer flow is:

kg dataset -> kg builder -> built KG / build trace -> kg eval result

Install

python -m pip install aether-observer

For local development from this repository:

python -m pip install -e ".[dev]"

Python API

from aether_kg_eval import dataset_from_triples, evaluate_kg_builder

dataset = dataset_from_triples(
    [
        ("entity:1", "relation:works_at", "entity:2"),
        ("entity:3", "relation:reports_to", "entity:1"),
    ],
    name="customer-kg-smoke",
)

def builder(dataset):
    return dataset.triples

result = evaluate_kg_builder(dataset, builder)

print(result.overall_score)
print(result.intent_drift.status)
print(result.behavior_drift.status)
print(result.kg_quality.to_dict())

The v1 result reports:

  • intent_drift: whether the builder preserved the intended KG construction task.
  • behavior_drift: whether builder behavior or KG shape moved away from baseline.
  • orchestration_drift: reserved as not_applicable for single-builder pipelines.
  • kg_quality: triple, entity, relation, duplicate, invalid, and contradiction metrics.

Builder Contract

evaluate_kg_builder(dataset, builder) accepts builders that return one of:

  • BuiltKG
  • dict with triples and optional trace
  • list[KGTriple]
  • list[tuple[subject, relation, object]]

Trace entries can be supplied as existing EpisodeRecord objects or dicts matching the legacy JSONL episode shape. When trace is absent, KG quality is still scored and behavior drift falls back to KG quality.

Legacy Episode Format

Each JSONL record is an episode:

{"id":"e1","timestamp":"2026-05-15T00:00:00Z","content":"Alice joined Acme.","content_type":"text","source":"seed","agent_id":"agent-a","task_id":"build-kg","entity_types":["Person","Org"],"relation_types":["JOINS"],"tool_calls":["extract"],"expected_intent":"add employment fact","outcome":"success"}

Important optional fields:

  • entity_types, relation_types, graph_nodes, graph_edges, embedding, contradictions, invalidations
  • tool_calls, handoff, coordination_failure, boundary_violation, human_intervention
  • expected_intent, observed_intent, reasoning_trace, outcome

The legacy kg_drift_builder modules remain available internally for rolling-window scoring and Graphiti/Kuzu experiments, but the sellable SDK surface is aether_kg_eval.

Optional Graphiti/Kuzu

The old Graphiti/Kuzu ingestion adapter is still present as an optional integration layer. It is not required to evaluate normal Python KG outputs.

Metadata

Release files for aether-observer 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aether-observer 0.1.4
File Size Uploaded Provenance Actions
aether_observer-0.1.4.tar.gz 20.6 kB Without provenance Details for aether_observer-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aether-observer 0.1.4
File Interpreter ABI Platform Actions
aether_observer-0.1.4-py3-none-any.whl Python 3 none any Details for aether_observer-0.1.4-py3-none-any.whl

Total release size: 42.0 kB

Release files / aether_observer-0.1.4.tar.gz

Download URL aether_observer-0.1.4.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c253d6a85b5e746323b8e3ce8aa82ee4c71ab1bfa086e8131d70c41e22c7c67a
BLAKE2b-256 checksum
How to use checksums
7588d986f9bdc8b90b3765173a028445a9e51787a2b8a98e60dcf7389b3b94e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / aether_observer-0.1.4-py3-none-any.whl

Download URL aether_observer-0.1.4-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0c49b72886882c761e3cc5f3eab1554ed84fcc3914afaa610188ae44e36ed1c
BLAKE2b-256 checksum
How to use checksums
bd3337c65c7d1a0190aa8c444dfc89eeb5e6164ec5b13425dcce47f332843e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Security for aether-observer 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page