ChunkReference Model
ChunkReference Model documentation for Python SDK
Reference to a memory chunk with pointer to its parent memory
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| result_set_id | str | Result set ID that produced this chunk | |
| chunk | MemoryChunkResponse | ||
| memory_index | int | Index of the chunk's memory in the client's memories array | |
| relevance_score | float | Relevance score for this chunk (0.0 to 1.0) |
Example
from goodmem_client.models.chunk_reference import ChunkReference
# TODO update the JSON string below
json = "{}"
# create an instance of ChunkReference from a JSON string
chunk_reference_instance = ChunkReference.from_json(json)
# print the JSON string representation of the object
print(ChunkReference.to_json())
# convert the object into a dict
chunk_reference_dict = chunk_reference_instance.to_dict()
# create an instance of ChunkReference from a dict
chunk_reference_from_dict = ChunkReference.from_dict(chunk_reference_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK