File size: 827 Bytes
dbf4cbb
 
9ef5cb6
 
 
dbf4cbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
components:
  - name: DocumentStore
    type: ElasticsearchDocumentStore
    params:
      host: 172.17.0.2
  - name: tfidf_ret
    params:
      document_store: DocumentStore
    type: TfidfRetriever
  - name: reader
    params:
      # set model_name_or_path HF model_name
      model_name_or_path: deepset/minilm-uncased-squad2
      # here we have used a base-cpu image
      use_gpu: false
    type: FARMReader
  - name: TextFileConverter
    type: TextConverter
pipelines:
  - name: query
    nodes:
      - inputs: [Query]
        name: tfidf_ret
      - inputs: [tfidf_ret]
        name: reader
  - name: indexing
    nodes:
      - name: TextFileConverter
        inputs: [ File ]
      - name: tfidf_ret
        inputs: [ TextFileConverter ]
      - name: DocumentStore
        inputs: [ tfidf_ret ]
version: ignore