import type * as VoyageAI from "../../index.mjs"; /** * @example * { * input: "input", * model: "model" * } */ export interface EmbedRequest { /** A single text string, or a list of texts as a list of strings. Currently, we have two constraints on the list: */ input: VoyageAI.EmbedRequestInput; /** Name of the model. Recommended options: `voyage-4-large`, `voyage-4`, `voyage-4-lite`, `voyage-3-large`, `voyage-3.5`, `voyage-3.5-lite`, `voyage-code-3`, `voyage-finance-2`, `voyage-law-2`. */ model: string; /** Type of the input text. Defaults to `null`. Other options: `query`, `document`. */ inputType?: VoyageAI.EmbedRequestInputType; /** Whether to truncate the input texts to fit within the context length. Defaults to `true`. */ truncation?: boolean; /** Format in which the embeddings are encoded. We support two options: */ encodingFormat?: VoyageAI.EmbedRequestEncodingFormat; /** The number of dimensions for resulting output embeddings. Defaults to `null`. */ outputDimension?: number; /** The data type for the embeddings to be returned. Defaults to `float`. Other options: `int8`, `uint8`, `binary`, `ubinary`. `float` is supported for all models. `int8`, `uint8`, `binary`, and `ubinary` are supported by `voyage-3-large` and `voyage-code-3`. Please see our guide for more details about output data types. */ outputDtype?: VoyageAI.EmbedRequestOutputDtype; }