interface CohereRerankArgs {
    apiKey?: string;
    maxChunksPerDoc?: number;
    model?: string;
    topN?: number;
}

Properties

apiKey?: string

The API key to use.

{process.env.COHERE_API_KEY}
maxChunksPerDoc?: number

The maximum number of chunks per document.

model?: string

The name of the model to use.

{"rerank-english-v2.0"}
topN?: number

How many documents to return.

{3}