kgeval
kgeval is an evaluation framework for knowledge graphs.
Features
- Score a graph on 29 built-in metrics
- Trace every finding to the nodes and relationships involved
- Run reference-free and reference-based evaluation
- Compare evaluation runs over time
Requirements
- Python 3.11+
- Neo4j 5.10+ or Aura
Installation
pip install kgeval
Usage
CLI
kgeval run
Python
import kgeval
from neo4j import GraphDatabase
with GraphDatabase.driver("<uri>", auth=("<username>", "<password>")) as driver:
graph = kgeval.Neo4jSource(driver).load()
report = kgeval.evaluate(graph)
print(report.to_markdown())
Metrics
| Input | Evaluates |
|---|---|
| Graph only | Uniqueness, connectivity, naming, provenance, consistency, and coverage |
| Graph schema | Conformance and completeness |
| Ground truth | Graph precision, recall, and F1 |
| Test questions | Answerability |
| Retrievals | Retriever precision and recall |
| LLM judge | Accuracy, resolution, disambiguation, and extraction completeness |
See the metrics guide for the full list.
Documentation
For the full guide, see the documentation. For a complete walkthrough, see the example notebook.
Metadata
Release files for kgeval 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kgeval-0.1.0.tar.gz | 77.4 kB | With provenance | Details for kgeval-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kgeval-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kgeval-0.1.0-py3-none-any.whl |
Total release size: 183.9 kB
Release files / kgeval-0.1.0.tar.gz
| Download URL | kgeval-0.1.0.tar.gz |
|---|---|
| Size | 77.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
931f23fc227240babd1bc8facbdca0e52090ccc948126e0df36be308dd320961
|
|
BLAKE2b-256 checksum How to use checksums |
3f010c4463deb1dac5f9c44ce2579a7723e16c829cb6300dea42db6bc8e30f61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / kgeval-0.1.0-py3-none-any.whl
| Download URL | kgeval-0.1.0-py3-none-any.whl |
|---|---|
| Size | 106.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25626e30dc5728d9bc183748e5e15e7786898cf6110b8f98f22e350057afb034
|
|
BLAKE2b-256 checksum How to use checksums |
80a22feb50d9fecfb5a3a58e43c13be63cb016cec153859ec66d1967b78189c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for kgeval 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kgeval-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA 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.