runtime error
Exit code: 1. Reason: omatically** upgrade many imports. Please see documentation here <https://python.langchain.com/v0.2/docs/versions/v0_2/> from langchain.document_loaders import TextLoader, DirectoryLoader /home/user/app/app.py:4: 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/v0.2/docs/versions/v0_2/> from langchain.document_loaders import TextLoader, DirectoryLoader /home/user/app/app.py:6: LangChainDeprecationWarning: Importing FAISS from langchain.vectorstores is deprecated. Please replace deprecated imports: >> from langchain.vectorstores import FAISS with new imports of: >> from langchain_community.vectorstores import FAISS You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/v0.2/docs/versions/v0_2/> from langchain.vectorstores import FAISS Traceback (most recent call last): File "/home/user/app/app.py", line 153, in <module> doc_retrieval_gen = DocumentRetrievalAndGeneration(embedding_model_name, lm_model_id, data_folder) File "/home/user/app/app.py", line 20, in __init__ self.all_splits = self.load_documents(data_folder) File "/home/user/app/app.py", line 27, in load_documents documents = loader.load() File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/langchain_community/document_loaders/directory.py", line 117, in load return list(self.lazy_load()) File "/home/user/.pyenv/versions/3.10.14/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: 'sample_embedding_folder2'
Container logs:
Fetching error logs...