EmbeddingResponse

@Serializable
data class EmbeddingResponse(val embedding: List<Double>, val modelId: String? = null)(source)

Represents the response for an embedding operation, containing the result of the operation.

This class is used for deserializing responses containing vector embeddings that may be associated with a specific model.

Constructors

Link copied to clipboard
constructor(embedding: List<Double>, modelId: String? = null)

Properties

Link copied to clipboard

The list of double values representing the computed embedding or vector. Each value corresponds to a specific dimension in the generated embedding space.

Link copied to clipboard
@SerialName(value = "model")
val modelId: String? = null

An optional identifier for the model that generated the embedding.