Salvatore Rossitto commited on
Commit
b921295
·
1 Parent(s): e98f9af
Files changed (2) hide show
  1. RBotReloaded.py +1 -1
  2. requirements.txt +1 -0
RBotReloaded.py CHANGED
@@ -15,7 +15,7 @@ import google_free_search
15
  from langchain.vectorstores import FAISS # For storing embeddings
16
  from langchain.chains import RetrievalQA, ConversationalRetrievalChain # Chains for QA
17
  from langchain.utilities import TextRequestsWrapper, WikipediaAPIWrapper # Tools
18
- from langchain.document_loaders import DirectoryLoader, PyMuPDFLoader, TextLoader, WebBaseLoader # Loaders
19
  from langchain.document_loaders.recursive_url_loader import RecursiveUrlLoader # Load URLs
20
  from langchain.schema import AIMessage, HumanMessage, get_buffer_string # Chat history
21
  from langchain.text_splitter import RecursiveCharacterTextSplitter # Split text
 
15
  from langchain.vectorstores import FAISS # For storing embeddings
16
  from langchain.chains import RetrievalQA, ConversationalRetrievalChain # Chains for QA
17
  from langchain.utilities import TextRequestsWrapper, WikipediaAPIWrapper # Tools
18
+ from langchain.document_loaders import DirectoryLoader, PyMuPDFLoader, PyPDFLoader, TextLoader, WebBaseLoader # Loaders
19
  from langchain.document_loaders.recursive_url_loader import RecursiveUrlLoader # Load URLs
20
  from langchain.schema import AIMessage, HumanMessage, get_buffer_string # Chat history
21
  from langchain.text_splitter import RecursiveCharacterTextSplitter # Split text
requirements.txt CHANGED
@@ -24,6 +24,7 @@ numexpr
24
  llama_cpp_python
25
  psutil
26
  PyMuPDF
 
27
  safetensors
28
  selenium
29
  sentence-transformers
 
24
  llama_cpp_python
25
  psutil
26
  PyMuPDF
27
+ pypdf
28
  safetensors
29
  selenium
30
  sentence-transformers