OllamaEmbedRequestSpecification
Specification for matching embedding requests.
This class is used to specify the criteria for matching requests to the embed endpoint. It allows specifying the model, input (string or list of strings), truncate flag, options, and keepAlive.
Properties
Functions
Sets the duration for which the model remains loaded in memory.
Sets the model name criterion for matching embedding requests.
Sets the full request body for embedding request matching.
Adds a string matcher to the list of request body matchers for this specification.
Sets a single string input for embedding requests, clearing any existing list input.
Sets the list of string inputs for embedding, clearing any previously set single string input.
Sets whether to truncate the input to fit within the model's context length.