CreateEmbeddingsRequest - Go SDK

CreateEmbeddingsRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Embeddings request input

Fields

FieldTypeRequiredDescriptionExample
Inputoperations.InputUnion✔️Text, token, or multimodal input(s) to embedThe quick brown fox jumps over the lazy dog
Modelstring✔️The model to use for embeddingsopenai/text-embedding-3-small
EncodingFormat*operations.EncodingFormatThe format of the output embeddingsfloat
Dimensions*int64The number of dimensions for the output embeddings1536
User*stringA unique identifier for the end-useruser-1234
Provideroptionalnullable.OptionalNullable[components.ProviderPreferences]N/A{"allow_fallbacks": true}
InputType*stringThe type of input (e.g. search_query, search_document)search_query