import type * as VoyageAI from "../../index.js"; /** * @example * { * inputs: [["inputs"]], * model: "model" * } */ export interface ContextualizedEmbedRequest { /** A list of documents, where each document is represented as a list of text chunks (strings). */ inputs: string[][]; /** Name of the model. Currently, the recommended model is `voyage-context-3`, which has a context length of 32,000 tokens and supports output dimensions of 256, 512, 1024, and 2048. */ model: string; /** Type of the input text. Defaults to `null`. Other options: `query`, `document`. */ inputType?: VoyageAI.ContextualizedEmbedRequestInputType; /** The number of dimensions for resulting output embeddings. Defaults to 1024 for `voyage-context-3`. Supported dimensions: 256, 512, 1024, 2048. */ outputDimension?: number; /** The data type for the embeddings to be returned. Defaults to `float`. Other options: `int8`, `uint8`, `binary`, `ubinary`. */ outputDtype?: VoyageAI.ContextualizedEmbedRequestOutputDtype; }