langchain.js
    Preparing search index...

    Interface MapReduceDocumentsChainInput

    Interface for the input properties of the MapReduceDocumentsChain class.

    interface MapReduceDocumentsChainInput {
        callbackManager?: any;
        combineDocumentChain: StuffDocumentsChain;
        documentVariableName?: string;
        ensureMapStep?: boolean;
        inputKey?: string;
        llmChain: LLMChain;
        maxIterations?: number;
        maxTokens?: number;
        memory?: any;
        returnIntermediateSteps?: boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    callbackManager?: any

    Use callbacks instead

    combineDocumentChain: StuffDocumentsChain

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

    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
    llmChain: LLMChain

    LLM Wrapper to use after formatting documents

    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?: any
    returnIntermediateSteps?: boolean

    Return the results of the map steps in the output.