Llm Graph Projector
LLM-based graph projector. Uses an LLM to classify propositions into relationship types from both the DataDictionary schema and Relations predicates.
Builder Usage (Java)
LlmGraphProjector projector = LlmGraphProjector
.withLlm(llmOptions)
.withAi(ai)
.withRelations(relations)
.withLenientPolicy();Direct Construction (Kotlin)
val projector = LlmGraphProjector(
ai = ai,
relations = relations,
policy = LenientProjectionPolicy(),
llmOptions = llmOptions,
)Parameters
AI service for LLM calls
Relation predicates to include as candidate relationship types
Policy to filter propositions before projection
LLM configuration
Resolves the source authority stamped onto each projected edge
Constructors
Functions
Projects a single proposition to a graph relationship.
Projects a list of propositions, applying the configured policy to each.
Override the resolver that stamps each projected edge with its source authority.
Use a DefaultProjectionPolicy with default confidence threshold.
Use a DefaultProjectionPolicy with the given confidence threshold.
Use a LenientProjectionPolicy with default confidence threshold.
Use a LenientProjectionPolicy with the given confidence threshold.
Override LLM options after construction.
Set the projection policy.
Set the relation predicates.