Spaces:
Runtime error
Runtime error
mend
Browse files
app.py
CHANGED
@@ -157,11 +157,7 @@ def start_haystack():
|
|
157 |
"""
|
158 |
load document store, retriever, entailment checker and create pipeline
|
159 |
"""
|
160 |
-
|
161 |
-
os.remove('./faiss_document_store.db')
|
162 |
-
except:
|
163 |
-
pass
|
164 |
-
shutil.copy("./data/faiss_document_store.db", ".")
|
165 |
document_store = FAISSDocumentStore(
|
166 |
faiss_index_path=f"./data/my_faiss_index.faiss",
|
167 |
faiss_config_path=f"./data/my_faiss_index.json",
|
|
|
157 |
"""
|
158 |
load document store, retriever, entailment checker and create pipeline
|
159 |
"""
|
160 |
+
shutil.copy("./data/pdf_faiss_document_store.db", ".")
|
|
|
|
|
|
|
|
|
161 |
document_store = FAISSDocumentStore(
|
162 |
faiss_index_path=f"./data/my_faiss_index.faiss",
|
163 |
faiss_config_path=f"./data/my_faiss_index.json",
|
data/my_faiss_index.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"similarity": "cosine", "embedding_dim": 512, "sql_url": "sqlite:///
|
|
|
1 |
+
{"similarity": "cosine", "embedding_dim": 512, "sql_url": "sqlite:///pdf_faiss_document_store.db"}
|
data/{faiss_document_store.db → pdf_faiss_document_store.db}
RENAMED
File without changes
|