KnowledgeGraphVizNode

One knowledge-graph node in the visualizer contract (issue

Properties

Name

Type

Description

Notes

id

str

The entity name – the graph’s stable primary key for the node, and the address a future edit API mutates.

entity_type

str

Extracted entity type (e.g. organization, person). Empty if unknown.

[optional]

description

str

LLM-extracted description of the entity, as newline-joined text. The graph store keeps one fragment per contributing source chunk; description_parts exposes them individually.

[optional]

description_parts

List[str]

The entity’s description fragments, one per contributing source chunk (the store’s internal separator is not exposed).

[optional]

source_chunk_count

int

How many source chunks contributed to this node.

[optional]

file_paths

List[str]

Deduplicated source document filenames that contributed to this node.

[optional]

created_at

object

Build-time creation marker, when available.

[optional]

Example

from h2ogpte.rest_async.models.knowledge_graph_viz_node import KnowledgeGraphVizNode

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

# convert the object into a dict
knowledge_graph_viz_node_dict = knowledge_graph_viz_node_instance.to_dict()
# create an instance of KnowledgeGraphVizNode from a dict
knowledge_graph_viz_node_from_dict = KnowledgeGraphVizNode.from_dict(knowledge_graph_viz_node_dict)