Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,15 @@ print("groq_api_key: ", groq_api_key)
|
|
48 |
# st.title("Chat with Docs - Groq Edition :) ")
|
49 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
50 |
|
|
|
|
|
51 |
st.write("List of all the loaded documents: ")
|
52 |
pdf_files = glob.glob("*.pdf")
|
53 |
for file in pdf_files:
|
54 |
st.write(file)
|
55 |
|
|
|
|
|
56 |
if "vector" not in st.session_state:
|
57 |
|
58 |
st.write("Chunking, embedding, storing in FAISS vectorstore ...")
|
@@ -143,7 +147,7 @@ if "vector" not in st.session_state:
|
|
143 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
144 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
145 |
|
146 |
-
|
147 |
|
148 |
# st.title("Chat with Docs - Groq Edition :) ")
|
149 |
# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
@@ -189,3 +193,4 @@ if prompt:
|
|
189 |
st.write(doc.page_content)
|
190 |
st.write("--------------------------------")
|
191 |
|
|
|
|
48 |
# st.title("Chat with Docs - Groq Edition :) ")
|
49 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
50 |
|
51 |
+
st.write("---------------------------------")
|
52 |
+
|
53 |
st.write("List of all the loaded documents: ")
|
54 |
pdf_files = glob.glob("*.pdf")
|
55 |
for file in pdf_files:
|
56 |
st.write(file)
|
57 |
|
58 |
+
st.write("---------------------------------")
|
59 |
+
|
60 |
if "vector" not in st.session_state:
|
61 |
|
62 |
st.write("Chunking, embedding, storing in FAISS vectorstore ...")
|
|
|
147 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
148 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
149 |
|
150 |
+
st.write("---------------------------------")
|
151 |
|
152 |
# st.title("Chat with Docs - Groq Edition :) ")
|
153 |
# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
|
|
193 |
st.write(doc.page_content)
|
194 |
st.write("--------------------------------")
|
195 |
|
196 |
+
st.write("---------------------------------")
|