GoodMem
ReferenceClient SDKsPython SDKModels

ChunkReference Model

ChunkReference Model documentation for Python SDK

Reference to a memory chunk with pointer to its parent memory

Properties

NameTypeDescriptionNotes
result_set_idstrResult set ID that produced this chunk
chunkMemoryChunkResponse
memory_indexintIndex of the chunk's memory in the client's memories array
relevance_scorefloatRelevance 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

On this page