OpenaiEmbedResponseSpecification

class OpenaiEmbedResponseSpecification(var embeddings: List<List<Float>>? = null, var index: Int? = null, delay: Duration = 0.seconds) : AbstractResponseSpecification<CreateEmbeddingsRequest, EmbeddingsResponse> (source)

Specification for configuring OpenAI embedding responses.

This class is used to specify the content and behavior of responses to OpenAI embedding requests. It allows specifying the embeddings, index, and other response properties according to the OpenAI API format.

See also

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

The list of embedding vectors to include in the response

Link copied to clipboard
var index: Int?

The index of the embedding in the list of embeddings

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 index of the embedding in the list of embeddings.