# 💻developers


07/05/2023, 1:33 PM
How would it be possible to implement something like:
Copy code
MapReduceDocumentsChain: 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.