hwchase17 / langchain-hub

3.26k stars 267 forks source link

Improvement: MapReduce summarization chains executes a map step on a single document #28

Closed TomTom101 closed 1 year ago

TomTom101 commented 1 year ago

When feeding the map_reduce summarization chain with a single document, the doc is run through a unnecessary map step before running a combine prompt on it. The combine prompt would imo be sufficient to avoid summarizing a single summary which then is very lossy. Great project, hope this thrives!

TomTom101 commented 1 year ago

Wrong repo ;)