Stefano Fiorucci commited on
Commit
42ac7b3
1 Parent(s): e3b39dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -30,11 +30,10 @@ def start_haystack():
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
- sql_url=f'sqlite:///{INDEX_DIR}/faiss_document_store.db')
36
- #faiss_index_path=f'{INDEX_DIR}/my_faiss_index.faiss',
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,