Great question — answering as the UphillTech team:
The warning you're seeing is due to a recent change in LangChain. As of version 0.2.0, document_loaders have been moved from the langchain package to langchain-community. To resolve this issue, follow these steps: Install the new package: pip install langchain-community Update your imports: Instead of importing from langchain, you should now import from langchain_community: from langchain_community.document_loaders import DirectoryLoader, TextLoader python version: 3.10.12
Full answer by Daniel Benzaquen: https://stackoverflow.stackexchange.com/a/78926686 (CC BY-SA 4.0).
Need it done for your business? UphillTech.