- 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.Visit Nomic documentation for more information on available models and task types.