import type * as VoyageAI from "../../index.mjs"; /** * @example * { * inputs: [["inputs"]], * model: "model" * } */ export interface ContextualizedEmbedRequest { /** A list of documents, where each document is represented as a list of text chunks (strings). When `enable_auto_chunking` is `true` or `input_type` is `query`, inputs can also be a flat list of strings (one string per document or query). */ inputs: VoyageAI.ContextualizedEmbedRequestInputs; /** Name of the model. Recommended options: `voyage-context-3`, `voyage-context-4`. Both have a context length of 32,000 tokens and support 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; /** When `true`, the server performs chunking on the input documents. Requires `input_type` to be `document`. Inputs must be a flat list of strings (one string per document). Defaults to `false`. */ enableAutoChunking?: boolean; /** Target chunk size in tokens. Only valid when `enable_auto_chunking` is `true`. Must not exceed 32,000 tokens. Server default is 512. */ chunkSize?: number; /** Overlap in tokens between consecutive chunks. Only valid when `enable_auto_chunking` is `true`. Must be strictly less than `chunk_size`. Defaults to 0. */ chunkOverlap?: number; }