pyrit.models.EmbeddingSupport#
- class EmbeddingSupport[source]#
Bases:
ABC
- __init__()#
Methods
__init__
()generate_text_embedding
(text, **kwargs)Generate text embedding
- abstract generate_text_embedding(text: str, **kwargs) EmbeddingResponse [source]#
Generate text embedding
- Parameters:
text – The text to generate the embedding for
**kwargs – Additional arguments to pass to the function.
- Returns:
The embedding response