KnowledgeGraphVizEdge

One knowledge-graph edge (undirected). The (source, target) pair is the edge’s stable identity; id is a render key only.

Properties

Name

Type

Description

Notes

id

str

Render key (order-normalized "src-tgt").

[optional]

source

str

Entity name of one endpoint.

target

str

Entity name of the other endpoint.

description

str

LLM-extracted description of the relationship, as newline-joined text. See description_parts for the per-chunk fragments.

[optional]

description_parts

List[str]

The relationship’s description fragments, one per contributing source chunk.

[optional]

keywords

str

Relationship keywords captured at extraction.

[optional]

weight

float

Relationship strength assigned at extraction.

[optional]

source_chunk_count

int

How many source chunks contributed to this edge.

[optional]

Example

from h2ogpte.rest_sync.models.knowledge_graph_viz_edge import KnowledgeGraphVizEdge

# TODO update the JSON string below
json = "{}"
# create an instance of KnowledgeGraphVizEdge from a JSON string
knowledge_graph_viz_edge_instance = KnowledgeGraphVizEdge.from_json(json)
# print the JSON string representation of the object
print(KnowledgeGraphVizEdge.to_json())

# convert the object into a dict
knowledge_graph_viz_edge_dict = knowledge_graph_viz_edge_instance.to_dict()
# create an instance of KnowledgeGraphVizEdge from a dict
knowledge_graph_viz_edge_from_dict = KnowledgeGraphVizEdge.from_dict(knowledge_graph_viz_edge_dict)