Module llm_chain::chains::map_reduce
source · Expand description
The map_reduce module contains the Chain struct, which represents a map-reduce chain.
A map-reduce chain is a combination of two steps - a map step and a reduce step.
The map step processes each input document and the reduce step combines the results
of the map step into a single output.
The Chain struct is generic over the type of the Step and provides a convenient way
to execute map-reduce operations using a provided Executor.
Structs
- The
Chainstruct represents a map-reduce chain, consisting of amapstep and areducestep.
Enums
- The
MapReduceChainErrorenum represents errors that can occur when executing a map-reduce chain.