Nomic
Chroma provides a convenient wrapper around Nomic’s embedding API. This embedding function runs remotely on Nomic’s servers, and requires an API key. You can get an API key by signing up for an account at Nomic.- Python
This embedding function relies on the You must pass in a
nomic python package, which you can install with pip install nomic.model argument and task_type argument. The task_type can be one of:search_document: Used to encode large documents in retrieval tasks at indexing timesearch_query: Used to encode user queries or questions in retrieval tasksclassification: Used to encode text for text classification tasksclustering: Used for clustering or reranking tasks
query_config parameter allows you to specify a different task type for queries, which is useful when you want to use search_document for documents and search_query for queries.