Cannot import BaseLanguageModel from langchain.schema #4063
-
Am using gpt_index and get this problem: File ~/anaconda3/lib/python3.10/site-packages/gpt_index/prompts/base.py:9 ImportError: cannot import name 'BaseLanguageModel' from 'langchain.schema' (/Users/james2/anaconda3/lib/python3.10/site-packages/langchain/schema.py) Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
oddrationale
May 5, 2023
Replies: 1 comment 2 replies
-
Most likely you have an outdated version of
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're welcome! If this resolved your issue, please consider marking the reply as the answer so we know this question has been resolved. Thanks!