mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-07 12:37:27 +00:00
changed document_store to ElasticsearchDocumentStore (#2192)
because FAISSDocumentStore errored with ElasticSearchRetriever
This commit is contained in:
parent
e4fd09e92a
commit
853de933a1
@ -10,7 +10,7 @@
|
||||
# marvellous seven kingdoms.
|
||||
|
||||
import logging
|
||||
from haystack.document_stores import ElasticsearchDocumentStore, FAISSDocumentStore
|
||||
from haystack.document_stores import ElasticsearchDocumentStore
|
||||
from haystack.utils import clean_wiki_text, convert_files_to_dicts, fetch_archive_from_http, print_answers, launch_es
|
||||
from haystack.nodes import FARMReader, TransformersReader, ElasticsearchRetriever
|
||||
|
||||
@ -38,9 +38,7 @@ def tutorial1_basic_qa_pipeline():
|
||||
launch_es()
|
||||
|
||||
# Connect to Elasticsearch
|
||||
document_store = FAISSDocumentStore(
|
||||
sql_url="sqlite://"
|
||||
) # ElasticsearchDocumentStore(host="localhost", username="", password="", index="document")
|
||||
document_store = ElasticsearchDocumentStore(host="localhost", username="", password="", index="document")
|
||||
|
||||
# ## Preprocessing of documents
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user