Interface extending RerankingRequestWithoutInput with additional parameters specific to the MixedbreadAIRerank class.

interface MixedbreadAIRerankParams {
    apiKey?: string;
    baseUrl?: string;
    maxRetries?: number;
    model?: string;
    rankFields?: string[];
    returnInput?: boolean;
    topK?: number;
}

Hierarchy

  • Omit<RerankingRequestWithoutInput, "model">
    • MixedbreadAIRerankParams

Properties

apiKey?: string

The API key to use.

{process.env.MXBAI_API_KEY}
baseUrl?: string

The base URL of the MixedbreadAI API.

maxRetries?: number

The maximum number of retries to attempt.

{3}
model?: string

The model to use for reranking. For example "default" or "mixedbread-ai/mxbai-rerank-large-v1".

{"default"}
rankFields?: string[]

The fields of the documents to rank.

returnInput?: boolean

Whether to return the documents.

topK?: number

The number of documents to return.