Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def format_docs(docs):
|
|
18 |
|
19 |
|
20 |
embeddings = NVIDIAEmbeddings(model="nvidia/nv-embedqa-mistral-7b-v2")
|
21 |
-
db = FAISS.load_local("
|
22 |
retriever = db.as_retriever()
|
23 |
compressor = FlashrankRerank()
|
24 |
compression_retriever = ContextualCompressionRetriever(
|
|
|
18 |
|
19 |
|
20 |
embeddings = NVIDIAEmbeddings(model="nvidia/nv-embedqa-mistral-7b-v2")
|
21 |
+
db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
22 |
retriever = db.as_retriever()
|
23 |
compressor = FlashrankRerank()
|
24 |
compression_retriever = ContextualCompressionRetriever(
|