pyrit.memory.EmbeddingDataEntry#
- class EmbeddingDataEntry(**kwargs)[source]#
Bases:
BaseRepresents the embedding data associated with conversation entries in the database. Each embedding is linked to a specific conversation entry via an id
- Parameters:
id (Uuid) – The primary key, which is a foreign key referencing the UUID in the PromptMemoryEntries table.
embedding (ARRAY(Float)) – An array of floats representing the embedding vector.
embedding_type_name (String) – The name or type of the embedding, indicating the model or method used.
- __init__(**kwargs)#
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
Methods
__init__(**kwargs)A simple constructor that allows initialization from kwargs.
Attributes
metadataRefers to the
_schema.MetaDatacollection that will be used for new_schema.Tableobjects.registryRefers to the
_orm.registryin use where new_orm.Mapperobjects will be associated.- embedding#
- embedding_type_name#
- id#