Interface for the request body to generate embeddings.

interface CreateVoyageEmbeddingRequest {
    encoding_format?: string;
    input: string | string[];
    input_type?: string;
    model: string;
    output_dimension?: number;
    output_dtype?: string;
    truncation?: boolean;
}

Properties

encoding_format?: string

The format of the output embeddings.

input: string | string[]

Text to generate vector expectation

CreateVoyageEmbeddingRequest

input_type?: string

Input type for the embeddings request.

model: string

CreateVoyageEmbeddingRequest

output_dimension?: number

The desired dimension of the output embeddings.

output_dtype?: string

The data type of the output embeddings.

truncation?: boolean

Whether to truncate the input texts.