EntityLinker

org.llm4s.knowledgegraph.extraction.EntityLinker
class EntityLinker(llmClient: Option[LLMClient])

Links and deduplicates entities across a knowledge graph.

Performs two passes:

  1. Deterministic same-name merging: nodes with the same label and normalized name property are merged, with edges rewritten to point at the surviving node.
  2. LLM-assisted disambiguation (optional): ambiguous clusters (e.g., "Jobs" vs "Steve Jobs") are sent to the LLM to confirm or reject merges.

Value parameters

llmClient

Optional LLM client for disambiguation. If None, only deterministic merging is performed.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Links entities in a SourceTrackedGraph, updating provenance mappings to reflect merges.

Links entities in a SourceTrackedGraph, updating provenance mappings to reflect merges.

Value parameters

tracked

The source-tracked graph to link

Attributes

Returns

A new SourceTrackedGraph with entities linked and provenance updated