langchain.js
    Preparing search index...

    LangChain Messages

    interface EnsembleRetrieverInput {
        c?: number;
        retrievers: BaseRetriever[];
        weights?: number[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    c?: number

    A constant added to the rank, controlling the balance between the importance of high-ranked items and the consideration given to lower-ranked items. Default is 60.

    retrievers: BaseRetriever[]

    A list of retrievers to ensemble.

    weights?: number[]

    A list of weights corresponding to the retrievers. Defaults to equal weighting for all retrievers.