changed document_store to ElasticsearchDocumentStore (#2192)

because FAISSDocumentStore errored with ElasticSearchRetriever
This commit is contained in:
mkkuemmel 2022-02-16 12:35:17 +01:00 committed by GitHub
parent e4fd09e92a
commit 853de933a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
#