Sentence Transformer Embedder is a class that allows you to embed documents using Hugging Face’s sentence-transformers library, providing access to a wide range of open-source embedding models that can run locally.Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | sentence-transformers/all-MiniLM-L6-v2 | The name of the SentenceTransformers model to use |
dimensions | int | 384 | The dimensionality of the generated embeddings |
sentence_transformer_client | Optional[SentenceTransformer] | None | Optional pre-configured SentenceTransformers client instance |
prompt | Optional[str] | None | Optional prompt to prepend to input text |
normalize_embeddings | bool | False | Whether to normalize returned vectors to have length 1 |