Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Ollama → embeddings_ollama_api_embeddings__url_idx__post

AI-generated

Summary

Send a POST request to the Ollama embeddings API at the specified url_idx to generate embeddings based on the given model and prompt.

Inputs

  • url_idx (required) — The identifier to specify in the request path to target a particular embeddings resource.
  • model (required) — The model name to use for generating embeddings.
  • prompt (required) — The text prompt to generate embeddings for.
  • options — Optional additional parameters as an object to customize the embeddings generation.
  • keep_alive — Optional parameter to specify keep-alive duration as an integer or string.
  • skipAuthentication — Flag to determine if authentication should be skipped (default is false).

Output shape

The API response object containing the generated embeddings as returned by the Ollama embeddings endpoint.

The operation sends a POST to the path /ollama/api/embeddings/{url_idx}, including JSON body with model, prompt, and optional fields. It requires the Open WebUI Auth credential unless 'Skip Authentication' is enabled. The output shape corresponds to the response from the Ollama embeddings API JSON payload.

Links

Discussion