haystack/test/samples/pipeline/test_pipeline.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

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:
index: haystack_test_pipeline
- name: TestPDFConverter
type: PDFToTextConverter
params:
remove_numeric_tables: false
- name: TestPreprocessor
type: PreProcessor
params:
clean_whitespace: true
pipelines:
- name: test_query_pipeline
type: Query
nodes:
- name: TestESRetriever
inputs: [Query]
- name: TestReader
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]