gkamradt / langchain-tutorials

Overview and tutorial of the LangChain Library
6.63k stars 1.92k forks source link

Run 5 levels of summarization-level 3 mapreduce code got an error #19

Closed lemondy closed 1 year ago

lemondy commented 1 year ago

when i run level 3 map reduce code, i got an error like :

ValueError: OpenAIChat currently only supports single prompt, got 

I think it comes form code:

output = summary_chain.run(docs)

i have search from the interenet, and still not find a solution, so how can i solved this.

my local environment:

Python 3.9.5 (default, May 18 2021, 12:31:01) langchain 0.0.167 openai 0.27.6

gkamradt commented 1 year ago

How many docs are in your docs? You may have to wrap it in a list like [docs].