OllamaEmbedResponseSpecification

class OllamaEmbedResponseSpecification(var embeddings: List<List<Float>>? = null, var model: String? = null, delay: Duration = 0.seconds) : AbstractResponseSpecification<EmbeddingsRequest, EmbeddingsResponse> (source)

Specification for configuring embedding responses.

This class is used to specify the content and behavior of responses to embedding requests. It allows specifying the embeddings, model, and other response properties.

Constructors

Link copied to clipboard
constructor(embeddings: List<List<Float>>? = null, model: String? = null, delay: Duration = 0.seconds)

Properties

Link copied to clipboard
Link copied to clipboard

The embeddings to include in the response

Link copied to clipboard

The model name to include in the response

Functions

Link copied to clipboard
open override fun delayMillis(value: Long)
Link copied to clipboard

Sets the embeddings to be included in the response.

Sets the embeddings to include in the response using one or more embedding vectors.

Link copied to clipboard

Sets the model name to be included in the embedding response.