I am trying to do a text chunking by LangChain's RecursiveCharacterTextSplitter model. I have install langchain(pip install langchain[all]), but the program still report there is no RecursiveCharacterTextSplitter package. I use from langchain.text_splitter import RecursiveCharacterTextSplitter I tried to find something on the python file of langchain and get nothing helpful. Anyone meet the same problem? Thank you for your time!
If anyone knows how to solve it, that will be great.
Could you try below steps.
Create a virtual environment using the command
Activate the virtual environment by executing source
PIP install libraries
You should now successfully able to import
Also, you can check
your langchain environment path, something as /langchain_env/lib/python3.9/site-packages/langchain/text_splitter.py, here you you should see the definition of RecursiveCharacterTextSplitter