Chroma provides a convenient wrapper around the Sentence Transformers library. This embedding function runs locally and uses pre-trained models from Hugging Face.Documentation Index
Fetch the complete documentation index at: https://docs.trychroma.com/llms.txt
Use this file to discover all available pages before exploring further.
- Python
- TypeScript
This embedding function relies on the You can pass in optional arguments:
sentence_transformers python package, which you can install with pip install sentence_transformers.model_name: The name of the Sentence Transformer model to use (default: “all-MiniLM-L6-v2”)device: Device used for computation, “cpu” or “cuda” (default: “cpu”)normalize_embeddings: Whether to normalize returned vectors (default: False)
Sentence Transformers are great for semantic search tasks. Popular models include
all-MiniLM-L6-v2 (fast and efficient) and all-mpnet-base-v2 (higher quality). Visit SBERT documentation for more model recommendations.