KnowledgeGraphSourceChunk
A source chunk that contributed to a knowledge-graph node (build-time provenance).
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
id |
str |
The graph’s internal chunk id. |
|
content |
str |
Chunk text (server-truncated for preview). |
|
content_truncated |
bool |
True when content was truncated to the preview cap. |
[optional] |
file_path |
str |
Source document filename the chunk came from. |
[optional] |
Example
from h2ogpte.rest_async.models.knowledge_graph_source_chunk import KnowledgeGraphSourceChunk
# TODO update the JSON string below
json = "{}"
# create an instance of KnowledgeGraphSourceChunk from a JSON string
knowledge_graph_source_chunk_instance = KnowledgeGraphSourceChunk.from_json(json)
# print the JSON string representation of the object
print(KnowledgeGraphSourceChunk.to_json())
# convert the object into a dict
knowledge_graph_source_chunk_dict = knowledge_graph_source_chunk_instance.to_dict()
# create an instance of KnowledgeGraphSourceChunk from a dict
knowledge_graph_source_chunk_from_dict = KnowledgeGraphSourceChunk.from_dict(knowledge_graph_source_chunk_dict)