interface EnsembleRetrieverInput {
    c?: number;
    callbacks?: Callbacks;
    metadata?: Record<string, unknown>;
    retrievers: BaseRetriever<Record<string, any>>[];
    tags?: string[];
    verbose?: boolean;
    weights?: number[];
}

Hierarchy

  • BaseRetrieverInput
    • EnsembleRetrieverInput

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.

callbacks?: Callbacks
metadata?: Record<string, unknown>
retrievers: BaseRetriever<Record<string, any>>[]

A list of retrievers to ensemble.

tags?: string[]
verbose?: boolean
weights?: number[]

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