langchain/docs/modules/chains
Chandan Routray bc875a9df1
Fixed multi input prompt for MapReduceChain (#4979)
# Fixed multi input prompt for MapReduceChain

Added `kwargs` support for inner chains of `MapReduceChain` via
`from_params` method
Currently the `from_method` method of intialising `MapReduceChain` chain
doesn't work if prompt has multiple inputs. It happens because it uses
`StuffDocumentsChain` and `MapReduceDocumentsChain` underneath, both of
them require specifying `document_variable_name` if `prompt` of their
`llm_chain` has more than one `input`.

With this PR, I have added support for passing their respective `kwargs`
via the `from_params` method.

## Fixes https://github.com/hwchase17/langchain/issues/4752

## Who can review? 
@dev2049 @hwchase17 @agola11

---------

Co-authored-by: imeckr <chandanroutray2012@gmail.com>
2023-06-03 14:41:03 -07:00
..
examples Harrison/neo4j (#5078) 2023-05-22 07:31:48 -07:00
generic Documentation fixes (linting and broken links) (#5563) 2023-06-01 13:06:17 -07:00
index_examples Fixed multi input prompt for MapReduceChain (#4979) 2023-06-03 14:41:03 -07:00
getting_started.ipynb docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
how_to_guides.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00