Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
@@ -36,7 +36,8 @@ def start_haystack(documents_processed):
|
|
36 |
document_store=document_store,
|
37 |
embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
|
38 |
model_format="sentence_transformers")
|
39 |
-
|
|
|
40 |
|
41 |
|
42 |
reader = FARMReader(model_name_or_path="deepset/tinyroberta-squad2", use_gpu=True) #deepset/roberta-base-squad2
|
|
|
36 |
document_store=document_store,
|
37 |
embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
|
38 |
model_format="sentence_transformers")
|
39 |
+
|
40 |
+
document_store.update_embeddings(retriever)
|
41 |
|
42 |
|
43 |
reader = FARMReader(model_name_or_path="deepset/tinyroberta-squad2", use_gpu=True) #deepset/roberta-base-squad2
|