-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'RecursiveCharacterTextSplitter' from 'langchain.text_splitter' #6
Comments
I encountered a similar issue solved by: Hopefully this works for you as well! |
Also confirm that you're running the right version of Python.
|
Which of the Python versions is required? I use Python 3.8 but there will be this error, TKS |
any update on this? |
I meet the same problem. How did you solve it in the end? |
Have you ever tried running "pip install --upgrade langchain"? |
Of course, it won't be helpful much later, but I found a solution. It seems to be a version issue. Currently, instead of importing from langchain.text_splitter, you should import from langchain_text_splitters. You can install it via: And then modify your import statement to: Try this and see if it resolves the issue. |
Hi there, I'm trying to run this locally, but the following error occurs when I run
python ingest_data.py
The text was updated successfully, but these errors were encountered: