peter2000 commited on
Commit
48bb07e
1 Parent(s): d5e831b

Update appStore/keyword_search.py

Browse files
Files changed (1) hide show
  1. appStore/keyword_search.py +1 -1
appStore/keyword_search.py CHANGED
@@ -32,7 +32,7 @@ def start_haystack(documents_processed):
32
  document_store = InMemoryDocumentStore()
33
  document_store.write_documents(documents_processed)
34
  retriever = TfidfRetriever(document_store=document_store)
35
- reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2", use_gpu=True)
36
  pipeline = ExtractiveQAPipeline(reader, retriever)
37
  return pipeline
38
 
 
32
  document_store = InMemoryDocumentStore()
33
  document_store.write_documents(documents_processed)
34
  retriever = TfidfRetriever(document_store=document_store)
35
+ reader = FARMReader(model_name_or_path="allenai/longformer-large-4096-finetuned-triviaqa", use_gpu=True) #deepset/roberta-base-squad2
36
  pipeline = ExtractiveQAPipeline(reader, retriever)
37
  return pipeline
38