Member Junction
    Preparing search index...

    Interface RerankParams

    Parameters for a rerank operation.

    interface RerankParams {
        documents: RerankDocument[];
        options?: Record<string, unknown>;
        query: string;
        topK?: number;
    }
    Index

    Properties

    documents: RerankDocument[]

    Documents to rerank (typically from vector search results)

    options?: Record<string, unknown>

    Provider-specific options (passed through to the reranker implementation)

    query: string

    The query text to rank documents against

    topK?: number

    Maximum number of results to return after reranking. If not specified, returns all reranked documents.