Kadi-IAM commited on
Commit
67eda0d
·
1 Parent(s): 846c24d
Files changed (3) hide show
  1. .gitignore +4 -1
  2. app.py +0 -3
  3. requirements.txt +4 -2
.gitignore CHANGED
@@ -47,4 +47,7 @@ coverage.xml
47
  *.pot
48
 
49
  # Sphinx documentation
50
- docs/_build/
 
 
 
 
47
  *.pot
48
 
49
  # Sphinx documentation
50
+ docs/_build/
51
+
52
+ # Env var.
53
+ .env
app.py CHANGED
@@ -12,8 +12,6 @@ from huggingface_hub import login
12
 
13
  from documents import load_pdf_as_docs, load_xml_as_docs
14
 
15
- from memory_profiler import profile
16
-
17
  from vectorestores import get_faiss_vectorestore
18
 
19
  from langchain.vectorstores import FAISS
@@ -349,7 +347,6 @@ def bot(history, qa_conversation):
349
  yield history, citation_text
350
 
351
 
352
- @profile
353
  def document_changes(doc_path):
354
  """Parse user document."""
355
 
 
12
 
13
  from documents import load_pdf_as_docs, load_xml_as_docs
14
 
 
 
15
  from vectorestores import get_faiss_vectorestore
16
 
17
  from langchain.vectorstores import FAISS
 
347
  yield history, citation_text
348
 
349
 
 
350
  def document_changes(doc_path):
351
  """Parse user document."""
352
 
requirements.txt CHANGED
@@ -1,8 +1,10 @@
1
  python-dotenv
2
- langchain==0.2.3
 
3
  langchain-community==0.2.4
4
  text-generation
5
  pypdf
 
6
  gradio
7
  faiss-cpu
8
  chromadb
@@ -17,4 +19,4 @@ langchain-openai
17
  https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
18
  sentence-transformers
19
  langchain-groq
20
- tavily-python
 
1
  python-dotenv
2
+ langchain==0.2.1
3
+ langchain-core==0.2.0
4
  langchain-community==0.2.4
5
  text-generation
6
  pypdf
7
+ pymupdf
8
  gradio
9
  faiss-cpu
10
  chromadb
 
19
  https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
20
  sentence-transformers
21
  langchain-groq
22
+ tavily-python==0.3.3