orcalib.memoryset.memory_types#
Memory
dataclass
#
The base class for a labeled memory. This includes fields that are ALWAYS required.
embedding
instance-attribute
#
The embedding of the memory value, automatically generated by the Memoryset model.
memory_id
instance-attribute
#
The ID of the memory in the table, automatically generated by the Memoryset.
memory_version
instance-attribute
#
The version of the memory, automatically maintained by the Memoryset.
LabeledMemory
dataclass
#
Bases: _LabeledMemoryFields
, Memory
A labeled memory is a single item that can be stored in the database and has a label.
embedding
instance-attribute
#
The embedding of the memory value, automatically generated by the Memoryset model.
memory_id
instance-attribute
#
The ID of the memory in the table, automatically generated by the Memoryset.
memory_version
instance-attribute
#
The version of the memory, automatically maintained by the Memoryset.
MemoryLookup
dataclass
#
Bases: _OptionalLookupProperties
, Memory
, _RequiredLookupProperties
Single labeled memory lookup result.
embedding
instance-attribute
#
The embedding of the memory value, automatically generated by the Memoryset model.
memory_id
instance-attribute
#
The ID of the memory in the table, automatically generated by the Memoryset.
memory_version
instance-attribute
#
The version of the memory, automatically maintained by the Memoryset.
reranker_score
class-attribute
instance-attribute
#
The similarity score assigned by the reranker.
Note
This will be automatically generated if a reranker is attached to the memoryset.
reranker_embedding
class-attribute
instance-attribute
#
The reranker embedding for this memory value.
Note
This will be automatically generated if a reranker is attached to the memoryset.
LabeledMemoryLookup
dataclass
#
Bases: _OptionalLookupProperties
, _LabeledMemoryFields
, Memory
, _RequiredLookupProperties
Single labeled memory lookup result.
embedding
instance-attribute
#
The embedding of the memory value, automatically generated by the Memoryset model.
memory_id
instance-attribute
#
The ID of the memory in the table, automatically generated by the Memoryset.
memory_version
instance-attribute
#
The version of the memory, automatically maintained by the Memoryset.
reranker_score
class-attribute
instance-attribute
#
The similarity score assigned by the reranker.
Note
This will be automatically generated if a reranker is attached to the memoryset.
reranker_embedding
class-attribute
instance-attribute
#
The reranker embedding for this memory value.
Note
This will be automatically generated if a reranker is attached to the memoryset.