--- title: Ollama sidebarTitle: Ollama --- import { PyEmbeddingOllamaUsage } from '/snippets/integrations.mdx'; Generate embeddings via the [ollama](https://github.com/ollama/ollama-python) python library. More details: - [Ollama docs on embeddings](https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings) - [Ollama blog on embeddings](https://ollama.com/blog/embedding-models) | Parameter | Type | Default Value | Description | |------------------------|----------------------------|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| | `name` | `str` | `nomic-embed-text` | The name of the model. | | `host` | `str` | `http://localhost:11434` | The Ollama host to connect to. | | `options` | `ollama.Options` or `dict` | `None` | Additional model parameters listed in the documentation for the Modelfile such as `temperature`. | | `keep_alive` | `float` or `str` | `"5m"` | Controls how long the model will stay loaded into memory following the request. | | `ollama_client_kwargs` | `dict` | `{}` | kwargs that can be past to the `ollama.Client`. | {PyEmbeddingOllamaUsage}