Using LCEL with Memory
I had a LLMChain which I want to change now with LCEL to have proper support for streaming.
My original chain was:
ModuleNotFoundError: No module named ‘secret_key’
from second_key import openapi_key
import os
os.envirn[‘OPEN_API_KEY’] = openapi_key
module ‘openai’ has no attribute ‘OpenAI’
I installed the latest openai
version:
TPM limit reached when using OpenAI API and Langchain MapReduceDocumentsChain
I’m trying to use Langchain’s MapReduceDocumentsChain
in combination with OpenAI’s API to summarize a the content of a big document through the following chain (which was copied from Langchain’s documentation):