Ilyas KHIAT
commited on
Commit
·
5742ed9
1
Parent(s):
be800ca
requirements
Browse files- RAG_PDF.py +0 -1
- requirements.txt +18 -0
- requirements2.txt +0 -18
RAG_PDF.py
CHANGED
|
@@ -64,7 +64,6 @@ def rag_pdf():
|
|
| 64 |
with st.spinner("Processing..."):#loading bar to enhance user experience
|
| 65 |
#get pdf text in raw format
|
| 66 |
raw_text = get_pdf_text(pdf_docs)
|
| 67 |
-
st.write(raw_text)
|
| 68 |
|
| 69 |
#get text chunks
|
| 70 |
text_chunks = get_text_chunks(raw_text)
|
|
|
|
| 64 |
with st.spinner("Processing..."):#loading bar to enhance user experience
|
| 65 |
#get pdf text in raw format
|
| 66 |
raw_text = get_pdf_text(pdf_docs)
|
|
|
|
| 67 |
|
| 68 |
#get text chunks
|
| 69 |
text_chunks = get_text_chunks(raw_text)
|
requirements.txt
CHANGED
|
@@ -12,3 +12,21 @@ plotly
|
|
| 12 |
matplotlib
|
| 13 |
openai
|
| 14 |
beautifulsoup4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
matplotlib
|
| 13 |
openai
|
| 14 |
beautifulsoup4
|
| 15 |
+
python-dotenv
|
| 16 |
+
faiss-cpu
|
| 17 |
+
InstructorEmbedding
|
| 18 |
+
cohere
|
| 19 |
+
text_generation
|
| 20 |
+
langchain==0.1.9
|
| 21 |
+
langchain_community==0.0.24
|
| 22 |
+
langchain_openai==0.0.8
|
| 23 |
+
PyPDF2==3.0.1
|
| 24 |
+
python-dotenv==1.0.1
|
| 25 |
+
streamlit==1.31.1
|
| 26 |
+
torch==2.2.1
|
| 27 |
+
transformers==4.31.0
|
| 28 |
+
sentence-transformers==2.2.2
|
| 29 |
+
huggingface-hub==0.14.1
|
| 30 |
+
altair==4
|
| 31 |
+
tiktoken==0.5.2
|
| 32 |
+
openai==1.13.3
|
requirements2.txt
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
python-dotenv
|
| 2 |
-
faiss-cpu
|
| 3 |
-
InstructorEmbedding
|
| 4 |
-
cohere
|
| 5 |
-
text_generation
|
| 6 |
-
langchain==0.1.9
|
| 7 |
-
langchain_community==0.0.24
|
| 8 |
-
langchain_openai==0.0.8
|
| 9 |
-
PyPDF2==3.0.1
|
| 10 |
-
python-dotenv==1.0.1
|
| 11 |
-
streamlit==1.31.1
|
| 12 |
-
torch==2.2.1
|
| 13 |
-
transformers==4.31.0
|
| 14 |
-
sentence-transformers==2.2.2
|
| 15 |
-
huggingface-hub==0.14.1
|
| 16 |
-
altair==4
|
| 17 |
-
tiktoken==0.5.2
|
| 18 |
-
openai==1.13.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|