Interface MapReduceDocumentsChainInput

Interface for the input properties of the MapReduceDocumentsChain class.

interface MapReduceDocumentsChainInput {
    combineDocumentChain: StuffDocumentsChain;
    llmChain: LLMChain<string, LLMType>;
    callbackManager?: CallbackManager;
    documentVariableName?: string;
    ensureMapStep?: boolean;
    inputKey?: string;
    maxIterations?: number;
    maxTokens?: number;
    memory?: BaseMemory;
    returnIntermediateSteps?: boolean;
}

Hierarchy (view full)

Implemented by

Properties

combineDocumentChain: StuffDocumentsChain

Chain to use to combine results of applying llm_chain to documents.

llmChain: LLMChain<string, LLMType>

LLM Wrapper to use after formatting documents

callbackManager?: CallbackManager

⚠️ Deprecated ⚠️

Use callbacks instead

This feature is deprecated and will be removed in the future.

It is not recommended for use.

documentVariableName?: string

Variable name in the LLM chain to put the documents in

ensureMapStep?: boolean

Ensures that the map step is taken regardless of max tokens

inputKey?: string
maxIterations?: number

The maximum number of iterations to run through the map

maxTokens?: number

The maximum number of tokens before requiring to do the reduction

memory?: BaseMemory
returnIntermediateSteps?: boolean

Return the results of the map steps in the output.

Generated using TypeDoc