| Python | Typescript | |
|---|---|---|
| Cloudflare Workers AI | ✓ | ✓ |
| Cohere | ✓ | ✓ |
| Google Generative AI | ✓ | ✓ |
| Hugging Face | ✓ | - |
| Hugging Face Embedding Server | ✓ | ✓ |
| Instructor | ✓ | - |
| Jina AI | ✓ | ✓ |
| Mistral | ✓ | ✓ |
| Morph | ✓ | ✓ |
| OpenAI | ✓ | ✓ |
| Together AI | ✓ | ✓ |
| Provider | Embedding Function Package |
|---|---|
| All (installs all packages) | @chroma-core/all |
| Cloudflare Workers AI | @chroma-core/cloudflare-worker-ai |
| Cohere | @chroma-core/cohere |
| Google Gemini | @chroma-core/google-gemini |
| Hugging Face Server | @chroma-core/huggingface-server |
| Jina | @chroma-core/jina |
| Mistral | @chroma-core/mistral |
| Morph | @chroma-core/morph |
| Ollama | @chroma-core/ollama |
| OpenAI | @chroma-core/openai |
| Qwen (via Chroma Cloud) | @chroma-core/chroma-cloud-qwen |
| Together AI | @chroma-core/together-ai |
| Voyage AI | @chroma-core/voyageai |
- Python
- TypeScript
Default: all-MiniLM-L6-v2
Chroma’s default embedding function uses the Sentence Transformersall-MiniLM-L6-v2 model to create embeddings. This embedding model can create sentence and document embeddings that can be used for a wide variety of tasks. This embedding function runs locally on your machine, and may require you download the model files (this will happen automatically).If you don’t specify an embedding function when creating a collection, Chroma will set it to be the DefaultEmbeddingFunction:Using Embedding Functions
Embedding functions can be linked to a collection and used whenever you calladd, update, upsert or query.Custom Embedding Functions
You can create your own embedding function to use with Chroma; it just needs to implementEmbeddingFunction.