Chroma provides wrappers for both dense and sparse embedding 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.
Dense Embeddings
Chroma provides a convenient wrapper around HuggingFace’s embedding API. This embedding function runs remotely on HuggingFace’s servers, and requires an API key. You can get an API key by signing up for an account at HuggingFace.model_name argument, which lets you choose which HuggingFace model to use. By default, Chroma uses sentence-transformers/all-MiniLM-L6-v2. You can see a list of all available models here.
Sparse Embeddings
Chroma also supports sparse embedding models from Hugging Face usingHuggingFaceSparseEmbeddingFunction.
This embedding function requires the sentence_transformers package, which you can install with pip install sentence_transformers.