Find answers from the community

Updated 2 years ago

Cannot import name 'AI21' from 'langchai...

Hey there...
I'm trying to use the CSV Pandas dataloader, but am stuck on this error, apparently in the chain_wrapper.py script. Any chance on a fix for this anytime soon? or a workaround? https://github.com/jerryjliu/gpt_index/issues/601

from llama_index import download_loader

---> 7 import openai
8 from langchain import Cohere, LLMChain, OpenAI
----> 9 from langchain.llms import AI21

ImportError: cannot import name 'AI21' from 'langchain.llms'
K
1 comment
Looks like you need to severely upgrade your langchain, the most recent version is 0.0.99 and it seems you're on 0.0.27, it should fix a lot of things
Add a reply
Sign up and join the conversation on Discord