Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,8 @@ with zipfile.ZipFile('./chroma_db/faiss_db_ray.zip', 'r') as zip_ref:
|
|
22 |
zip_ref.extractall('./chroma_db/')
|
23 |
|
24 |
FAISS_INDEX_PATH='./chroma_db/faiss_db_ray'
|
25 |
-
embeddings = HuggingFaceHubEmbeddings("multi-qa-mpnet-base-dot-v1")
|
|
|
26 |
db = FAISS.load_local(FAISS_INDEX_PATH, embeddings)
|
27 |
retriever = db.as_retriever(search_type = "mmr")
|
28 |
|
|
|
22 |
zip_ref.extractall('./chroma_db/')
|
23 |
|
24 |
FAISS_INDEX_PATH='./chroma_db/faiss_db_ray'
|
25 |
+
#embeddings = HuggingFaceHubEmbeddings("multi-qa-mpnet-base-dot-v1")
|
26 |
+
embeddings = HuggingFaceHubEmbeddings()
|
27 |
db = FAISS.load_local(FAISS_INDEX_PATH, embeddings)
|
28 |
retriever = db.as_retriever(search_type = "mmr")
|
29 |
|