EmbeddingsRequest

Holds the options sent to the embeddings endpoint. The generated embeddings can be used in Machine Learning models.

input can be either a string or a list of strings.

Types

Link copied to clipboard
class Builder

A builder design pattern for constructing an EmbeddingsRequest instance.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Determines how the embeddings are encoded. Defaults to EncodingFormat.FLOAT.

Link copied to clipboard
var input: Any

The input(s) to convert to embeddings.

Link copied to clipboard

Which model to use to generate the embeddings.

Link copied to clipboard
var user: String?

The user ID to associate with this request.