mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-28 02:16:32 +00:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
![]() |
version: '1.1.0'
|
||
|
|
||
|
components:
|
||
|
- name: Reader
|
||
|
type: FARMReader
|
||
|
params:
|
||
|
no_ans_boost: -10
|
||
|
model_name_or_path: deepset/roberta-base-squad2
|
||
|
num_processes: 0
|
||
|
- name: ESRetriever
|
||
|
type: ElasticsearchRetriever
|
||
|
params:
|
||
|
document_store: DocumentStore
|
||
|
custom_query: null
|
||
|
- name: DocumentStore
|
||
|
type: ElasticsearchDocumentStore
|
||
|
params:
|
||
|
index: haystack_test
|
||
|
label_index: haystack_test_label
|
||
|
- name: Preprocessor
|
||
|
type: PreProcessor
|
||
|
params:
|
||
|
clean_whitespace: true
|
||
|
- name: PDFConverter
|
||
|
type: PDFToTextConverter
|
||
|
params:
|
||
|
remove_numeric_tables: false
|
||
|
|
||
|
|
||
|
pipelines:
|
||
|
- name: test-query
|
||
|
nodes:
|
||
|
- name: ESRetriever
|
||
|
inputs: [Query]
|
||
|
- name: Reader
|
||
|
inputs: [ESRetriever]
|
||
|
|
||
|
- name: test-indexing
|
||
|
nodes:
|
||
|
- name: PDFConverter
|
||
|
inputs: [File]
|
||
|
- name: Preprocessor
|
||
|
inputs: [PDFConverter]
|
||
|
- name: ESRetriever
|
||
|
inputs: [Preprocessor]
|
||
|
- name: DocumentStore
|
||
|
inputs: [ESRetriever]
|