NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 27-03-2024, 10:30 CET
Browse files
app.py
CHANGED
@@ -108,6 +108,8 @@ st.write("---------------------------------")
|
|
108 |
|
109 |
if "vector" not in st.session_state:
|
110 |
|
|
|
|
|
111 |
st.write("Even geduld a.u.b. ........")
|
112 |
# st.header("Chunking, embedding, storing in FAISS vectorstore (Can take a long time!).")
|
113 |
# st.subheader("Wait till this hase been done before you can enter your query! .......")
|
@@ -248,6 +250,9 @@ if "vector" not in st.session_state:
|
|
248 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
249 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
250 |
|
|
|
|
|
|
|
251 |
st.write("---------------------------------")
|
252 |
|
253 |
# st.title("Chat with Docs - Groq Edition :) ")
|
|
|
108 |
|
109 |
if "vector" not in st.session_state:
|
110 |
|
111 |
+
start = time.process_time()
|
112 |
+
|
113 |
st.write("Even geduld a.u.b. ........")
|
114 |
# st.header("Chunking, embedding, storing in FAISS vectorstore (Can take a long time!).")
|
115 |
# st.subheader("Wait till this hase been done before you can enter your query! .......")
|
|
|
250 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
251 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
252 |
|
253 |
+
# print(f"Response time: {time.process_time() - start}")
|
254 |
+
st.write(f"Response time: {time.process_time() - start} seconds")
|
255 |
+
|
256 |
st.write("---------------------------------")
|
257 |
|
258 |
# st.title("Chat with Docs - Groq Edition :) ")
|