Skip to main content

goldenmatch-kg

Drop-in goldenmatch entity resolution for knowledge-graph frameworks.

What this is: goldenmatch is an entity-resolution engine, not a KG builder. KG pipelines (neo4j-graphrag, LlamaIndex, Graphiti, ...) ingest text, extract entities and relationships, resolve/dedupe the entities, and write a graph. This package drops goldenmatch in as that resolve stage, where each framework exposes a seam:

  • neo4j-graphrag -- a real GoldenMatchResolver you pass into the pipeline (true in-pipeline plugin; replaces the built-in FuzzyMatchResolver).
  • LlamaIndex PropertyGraphIndex -- a GoldenMatchEntityResolver transform that canonicalizes entity names before upsert. LlamaIndex ships no fuzzy resolver of its own (its default is exact name+label upsert), so this is additive: exact-only to real ER.
  • Graphiti -- a post-ingestion propose_entity_merges pass over the graph's existing entity nodes (Graphiti exposes no public resolver seam, so this runs as a maintenance step, not in-line).

One framework-agnostic core (resolve_entities) does all the goldenmatch work; each adapter just marshals its framework's entities in and the merge decision out.

Install

pip install goldenmatch-kg                        # core only
pip install "goldenmatch-kg[neo4j-graphrag]"      # + neo4j-graphrag adapter
pip install "goldenmatch-kg[llamaindex]"          # + LlamaIndex adapter
pip install "goldenmatch-kg[graphiti]"            # + Graphiti adapter

The lift (measured, not asserted)

These adapters deliver goldenmatch's resolution through each framework's pipeline. The size of the win is measured by ER-KG-Bench, which scores each framework's own default entity resolution against goldenmatch on real corpora. On the self-sourced ghsuite corpus (RESULTS_ghsuite.md):

Framework its default ER (F1) goldenmatch (F1)
neo4j-graphrag 0.322 (fuzzy resolver, real-inproc) 0.969
LlamaIndex PGI exact upsert only (exact-match family scores 0.0 to 0.24) 0.969
Graphiti 0.379 (deterministic floor, real-inproc) 0.969

goldenmatch (F1) is the goldenmatch(auto+fields) row (P 0.963 / R 0.975 / F1 0.969), deterministic, zero LLM calls. The lift is the resolution you get by swapping goldenmatch in as the ER stage; it is read off the existing bench board, not re-scored here. The same shape holds on the external Wikidata/RxNorm corpus (RESULTS.md).

This is an ER-stage win, not "goldenmatch builds your KG": you still run the rest of your pipeline (extraction, relationship building, graph store). goldenmatch resolves the entities.

Per-framework guides

License

MIT

Download files

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

Source Distribution

goldenmatch_kg-0.2.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

goldenmatch_kg-0.2.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goldenmatch_kg-0.2.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for goldenmatch_kg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8b17dba914d5c2fd892e0816d35fe1a4061057f8a51ad427f2ee51208f2bf03e
MD5 7866732259346c9c11e55a06b28a12ad
BLAKE2b-256 484f2d4a8a14b120ccab7f071851622524646d8ab6c28eb62cf20968e17fe846

See more details on using hashes here.

File details

Details for the file goldenmatch_kg-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: goldenmatch_kg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for goldenmatch_kg-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d78bc7b64e0b239d0b01e86f0e5b74b3178ac1de4eb206574d85ad01d5f9a41
MD5 35b5c15e8eb88da20f3a2a46a31bb84c
BLAKE2b-256 37377f2af2a6e08c10507f09ed1294dc8b7fb11a4cc9e23d701ef1501b7ff42a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

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