langchain.js
    Preparing search index...

    Interface that extends EmbeddingsParams and defines additional parameters specific to the VoyageEmbeddings class.

    interface VoyageEmbeddingsParams {
        batchSize?: number;
        encodingFormat?: string;
        inputType?: string;
        modelName: string;
        outputDimension?: number;
        outputDtype?: string;
        truncation?: boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    batchSize?: number

    The maximum number of documents to embed in a single request. This is limited by the Voyage AI API to a maximum of 8.

    encodingFormat?: string

    The format of the output embeddings. Can be "float", "base64", or "ubinary".

    inputType?: string

    Input type for the embeddings request.

    modelName: string
    outputDimension?: number

    The desired dimension of the output embeddings.

    outputDtype?: string

    The data type of the output embeddings. Can be "float" or "int8".

    truncation?: boolean

    Whether to truncate the input texts to the maximum length allowed by the model.