runtime error
Exit code: 1. Reason: /home/user/app/app.py:5: LangChainDeprecationWarning: Importing Chroma from langchain.vectorstores is deprecated. Please replace deprecated imports: >> from langchain.vectorstores import Chroma with new imports of: >> from langchain_community.vectorstores import Chroma You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/> from langchain.vectorstores import Chroma /home/user/app/app.py:9: LangChainDeprecationWarning: Importing TextLoader from langchain.document_loaders is deprecated. Please replace deprecated imports: >> from langchain.document_loaders import TextLoader with new imports of: >> from langchain_community.document_loaders import TextLoader You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/> from langchain.document_loaders import TextLoader /home/user/app/app.py:10: LangChainDeprecationWarning: Importing DirectoryLoader from langchain.document_loaders is deprecated. Please replace deprecated imports: >> from langchain.document_loaders import DirectoryLoader with new imports of: >> from langchain_community.document_loaders import DirectoryLoader You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/> from langchain.document_loaders import DirectoryLoader Traceback (most recent call last): File "/home/user/app/app.py", line 24, in <module> documents = loader.load() File "/usr/local/lib/python3.10/site-packages/langchain_community/document_loaders/directory.py", line 117, in load return list(self.lazy_load()) File "/usr/local/lib/python3.10/site-packages/langchain_community/document_loaders/directory.py", line 123, in lazy_load raise FileNotFoundError(f"Directory not found: '{self.path}'") FileNotFoundError: Directory not found: './database'
Container logs:
Fetching error logs...