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.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Controls how long the model will stay loaded into memory

Link copied to clipboard

The model to match in the request

Link copied to clipboard

Additional model parameters to match in the request

Link copied to clipboard

The request body to match

Link copied to clipboard

Additional string matchers for the request body

Link copied to clipboard

The string input to match in the request

Link copied to clipboard

The list of string inputs to match in the request

Link copied to clipboard

Whether to truncate the input to fit within context length

Functions

Link copied to clipboard

Sets the duration for which the model remains loaded in memory.

Link copied to clipboard

Sets the model name criterion for matching embedding requests.

Link copied to clipboard

Sets additional model parameters for the embedding request specification.

Link copied to clipboard

Sets the full request body for embedding request matching.

Link copied to clipboard

Adds a string matcher to the list of request body matchers for this specification.

Link copied to clipboard

Sets a single string input for embedding requests, clearing any existing list input.

Link copied to clipboard

Sets the list of string inputs for embedding, clearing any previously set single string input.

Link copied to clipboard

Sets whether to truncate the input to fit within the model's context length.