Spaces:
Sleeping
Sleeping
Stefano Fiorucci
commited on
Commit
·
42ac7b3
1
Parent(s):
e3b39dc
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,10 @@ def start_haystack():
|
|
30 |
"""
|
31 |
load document store, retriever, reader and create pipeline
|
32 |
"""
|
33 |
-
|
34 |
document_store = FAISSDocumentStore(
|
35 |
-
|
36 |
-
|
37 |
-
#faiss_config_path=f'{INDEX_DIR}/my_faiss_index.json')
|
38 |
print (f'Index size: {document_store.get_document_count()}')
|
39 |
retriever = EmbeddingRetriever(
|
40 |
document_store=document_store,
|
|
|
30 |
"""
|
31 |
load document store, retriever, reader and create pipeline
|
32 |
"""
|
33 |
+
shutil.copy(f'{INDEX_DIR}/faiss_document_store.db','.')
|
34 |
document_store = FAISSDocumentStore(
|
35 |
+
faiss_index_path=f'{INDEX_DIR}/my_faiss_index.faiss',
|
36 |
+
faiss_config_path=f'{INDEX_DIR}/my_faiss_index.json')
|
|
|
37 |
print (f'Index size: {document_store.get_document_count()}')
|
38 |
retriever = EmbeddingRetriever(
|
39 |
document_store=document_store,
|