Embeddings
SentenceTransformers Embedder
The SentenceTransformerEmbedder
class is used to embed text data into vectors using the SentenceTransformers library.
Usage
cookbook/embedders/sentence_transformer_embedder.py
Params
Parameter | Type | Default | Description |
---|---|---|---|
dimensions | int | - | The dimensionality of the generated embeddings |
model | str | all-mpnet-base-v2 | The name of the SentenceTransformers model to use |
sentence_transformer_client | Optional[Client] | - | Optional pre-configured SentenceTransformers client instance |
Was this page helpful?