Document

@Serializable
data class Document(val text: String, val model: String, val options: Map<String, JsonElement>? = null) : InferenceInput

Text to embed.

Constructors

Link copied to clipboard
constructor(text: String, model: String, options: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
@SerialName(value = "model")
open override val model: String

The model that produces the vector. Which names are valid depends on the server's provider.

Link copied to clipboard
@SerialName(value = "options")
open override val options: Map<String, JsonElement>?

Model-specific options, passed to the inference service as they are.

Link copied to clipboard
@SerialName(value = "text")
val text: String