Data Models
Passage
Passage
Representation of a passage, which is stored in archival memory.
Arguments:
text
str - The text of the passage.embedding
List[float] - The embedding of the passage.embedding_config
EmbeddingConfig - The embedding configuration used by the passage.created_at
datetime - The creation date of the passage.user_id
str - The unique identifier of the user associated with the passage.agent_id
str - The unique identifier of the agent associated with the passage.source_id
str - The data source of the passage.doc_id
str - The unique identifier of the document associated with the passage.
pad_embeddings
Pad embeddings to MAX_EMBEDDING_SIZE
. This is necessary to ensure all stored embeddings are the same size.