tony346 commited on
Commit
44ed465
·
1 Parent(s): e67d16b

Update app.py

Browse files

Chroma --> FAISS

Files changed (1) hide show
  1. app.py +4 -1
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
- db = Chroma.from_documents(texts, embeddings)
 
 
 
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