EmbeddingsRequest
data class EmbeddingsRequest(val model: String, val input: List<String>, val truncate: Boolean? = true, val options: ModelOptions? = null, val keepAlive: String? = null)(source)
Represents a request to generate embeddings for a single string or list of string inputs with a provided model.
Properties
Link copied to clipboard
List of text to generate embeddings for
Link copied to clipboard
Controls how long the model will stay loaded into memory following the request (default: "5m")
Link copied to clipboard
Additional model parameters
Link copied to clipboard
Truncates the end of each input to fit within context length. Returns error if false and context length is exceeded. Defaults to true