embed

Sets up a mock handler for the Ollama /api/embed endpoint, allowing configuration of request matching for embedding requests.

Supports matching on model, input (string or list), truncate, keep_alive, and options fields in the request body.

Return

An OllamaEmbedBuildingStep for specifying the mock response to embedding requests.

Parameters

name

Optional identifier for the mock configuration.

block

Lambda to configure the request matching criteria via OllamaEmbedRequestSpecification.