Interface extending EmbeddingsParams with additional parameters specific to the MixedbreadAIEmbeddings class.

interface MixedbreadAIEmbeddingsParams {
    apiKey?: string;
    baseUrl?: string;
    batchSize?: number;
    dimensions?: number;
    encodingFormat?: EmbeddingsRequestEncodingFormat;
    model?: string;
    normalized?: boolean;
    prompt?: string;
    truncationStrategy?: TruncationStrategy;
}

Hierarchy (view full)

  • Toolkit
  • Omit<EmbeddingsRequestWithoutInput, "model">
    • MixedbreadAIEmbeddingsParams

Properties

apiKey?: string

The API key to use.

{process.env.MXBAI_API_KEY}
baseUrl?: string

The base URL for the API.

batchSize?: number

The maximum number of documents to embed in a single request.

{128}
dimensions?: number

The number of dimensions to use for the embeddings.

encodingFormat?: EmbeddingsRequestEncodingFormat
model?: string

The model to use for generating embeddings.

{"mixedbread-ai/mxbai-embed-large-v1"}
normalized?: boolean

Whether to normalize the embeddings.

prompt?: string

The prompt to use for the embedding creation.

truncationStrategy?: TruncationStrategy

The truncation strategy to use for the input.