Interface for the arguments required to construct a ContextualCompressionRetriever. It extends the BaseRetrieverInput interface with two additional fields: baseCompressor and baseRetriever.

interface ContextualCompressionRetrieverArgs {
    baseCompressor: BaseDocumentCompressor;
    baseRetriever: BaseRetrieverInterface<Record<string, any>>;
    callbacks?: Callbacks;
    metadata?: Record<string, unknown>;
    tags?: string[];
    verbose?: boolean;
}

Hierarchy

  • BaseRetrieverInput
    • ContextualCompressionRetrieverArgs

Properties

baseCompressor: BaseDocumentCompressor
baseRetriever: BaseRetrieverInterface<Record<string, any>>
callbacks?: Callbacks
metadata?: Record<string, unknown>
tags?: string[]
verbose?: boolean