2021-02-02 17:32:17 +01:00
|
|
|
version: '0.7'
|
|
|
|
|
|
|
|
components:
|
|
|
|
- name: TestReader
|
|
|
|
type: FARMReader
|
|
|
|
params:
|
|
|
|
no_ans_boost: -10
|
|
|
|
model_name_or_path: deepset/roberta-base-squad2
|
|
|
|
- name: TestESRetriever
|
|
|
|
type: ElasticsearchRetriever
|
|
|
|
params:
|
|
|
|
document_store: TestDocumentStore
|
|
|
|
custom_query: null
|
|
|
|
- name: TestDocumentStore
|
|
|
|
type: ElasticsearchDocumentStore
|
|
|
|
params:
|
2021-02-16 16:24:28 +01:00
|
|
|
index: haystack_test_pipeline
|
|
|
|
- name: TestPDFConverter
|
|
|
|
type: PDFToTextConverter
|
|
|
|
params:
|
|
|
|
remove_numeric_tables: false
|
|
|
|
- name: TestPreprocessor
|
|
|
|
type: PreProcessor
|
|
|
|
params:
|
|
|
|
clean_whitespace: true
|
|
|
|
|
2021-02-02 17:32:17 +01:00
|
|
|
|
|
|
|
pipelines:
|
|
|
|
- name: test_query_pipeline
|
2021-02-16 16:24:28 +01:00
|
|
|
type: Query
|
2021-02-02 17:32:17 +01:00
|
|
|
nodes:
|
|
|
|
- name: TestESRetriever
|
|
|
|
inputs: [Query]
|
|
|
|
- name: TestReader
|
2021-02-16 16:24:28 +01:00
|
|
|
inputs: [TestESRetriever]
|
|
|
|
|
|
|
|
- name: test_indexing_pipeline
|
|
|
|
type: Indexing
|
|
|
|
nodes:
|
|
|
|
- name: TestPDFConverter
|
|
|
|
inputs: [File]
|
|
|
|
- name: TestPreprocessor
|
|
|
|
inputs: [TestPDFConverter]
|
|
|
|
- name: TestESRetriever
|
|
|
|
inputs: [TestPreprocessor]
|
|
|
|
- name: TestDocumentStore
|
|
|
|
inputs: [TestESRetriever]
|