adamant-policeman-88146
07/05/2023, 1:33 PMMapReduceDocumentsChain: This chain incorporates a preprocessing step to select relevant sections from each document until the total number of tokens is less than the maximum number of tokens allowed by the model. It then uses the transformed documents as context to answer the question. It is suitable for QA tasks over larger documents and can run the preprocessing step in parallel, reducing the running time.
https://js.langchain.com/docs/modules/chains/index_related_chains/document_qa