pyrit.memory.EmbeddingDataEntry#
- class EmbeddingDataEntry(**kwargs)[source]#
Bases:
Base
Represents 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
metadata
Refers to the
_schema.MetaData
collection that will be used for new_schema.Table
objects.registry
Refers to the
_orm.registry
in use where new_orm.Mapper
objects will be associated.- embedding#
- embedding_type_name#
- id#