Get Text Embeddings from Ollama with the Embeddings API
Call the Ollama embeddings endpoint with the nomic-embed-text model and read the returned vector for local search.
THE FIELD GUIDE
Run AI on your own computer, check model and hardware requirements, and verify which steps work without a cloud connection.
Call the Ollama embeddings endpoint with the nomic-embed-text model and read the returned vector for local search.
Send a multi-message chat request to the Ollama chat endpoint with curl and stream false, and read the assistant reply.
Send a prompt to the Ollama generate endpoint with curl, read the JSON response, and get a non-streaming answer.
See which models are loaded with ollama ps, read the processor and context columns, and unload one with ollama stop.
Raise the context window of an Ollama model with PARAMETER num_ctx in a Modelfile, and check the setting with ollama show.
Write a Modelfile with a base model and a system prompt, create a custom model with ollama create, and run it.
Control the Ollama systemd service on Linux: start, stop, restart, check status, and enable or disable it at boot.
Install Ollama on Linux with the official install script, confirm the service is running, and start a first model.
Check your installed Ollama version and update it on Windows or macOS by re-running the installer or using the app update.
Download Ollama for Windows, install it from PowerShell or the setup file, and run a first model with ollama run.