Function loadQAMapReduceChain

  • Loads a MapReduceQAChain based on the provided parameters. It takes an LLM instance and MapReduceQAChainParams as parameters.

    Parameters

    • llm: BaseLanguageModel<any, BaseLanguageModelCallOptions>

      An instance of BaseLanguageModel.

    • params: MapReduceQAChainParams = {}

      Parameters for creating a MapReduceQAChain.

    Returns MapReduceDocumentsChain

    A MapReduceQAChain instance.

Generated using TypeDoc