Update app.py
Browse filesChroma --> FAISS
app.py
CHANGED
@@ -72,7 +72,10 @@ if uploaded_file is not None:
|
|
72 |
model_kwargs={'device': 'cpu'})
|
73 |
|
74 |
# Load the textual chunks into the Chroma vector store.
|
75 |
-
|
|
|
|
|
|
|
76 |
|
77 |
# Custom handler to stream outputs live to the Streamlit application.
|
78 |
from langchain.callbacks.base import BaseCallbackHandler
|
|
|
72 |
model_kwargs={'device': 'cpu'})
|
73 |
|
74 |
# Load the textual chunks into the Chroma vector store.
|
75 |
+
print('texts = ',texts)
|
76 |
+
print('embeddings = ', embeddings)
|
77 |
+
db = FAISS.from_documents(texts,embeddings)
|
78 |
+
# db = Chroma.from_documents(texts, embeddings)
|
79 |
|
80 |
# Custom handler to stream outputs live to the Streamlit application.
|
81 |
from langchain.callbacks.base import BaseCallbackHandler
|