forked from IntelLabs/fastRAG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa_diffusion_pipeline.yaml
53 lines (53 loc) · 1.04 KB
/
qa_diffusion_pipeline.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
components:
- name: Store
params:
host: localhost
index: index_name
port: 80
type: ElasticsearchDocumentStore
- name: Retriever
params:
document_store: Store
top_k: 10
type: BM25Retriever
- name: Reranker
params:
batch_size: 32
model_name_or_path: cross-encoder/ms-marco-MiniLM-L-12-v2
top_k: 10
use_gpu: true
type: SentenceTransformersRanker
- name: Reader
params:
input_converter_tokenizer_max_len: 512
max_length: 100
min_length: 2
model_name_or_path: Intel/fid_t5_large_nq
num_beams: 3
top_k: 2
use_gpu: true
type: FiDReader
- name: Image_gen
params:
access_token: REPLACE_WITH_GITHUB_ACCESS_TOKEN
batch_size: 1
use_gpu: true
model_name: CompVis/stable-diffusion-v1-4
num_inference_steps: 15
type: ImageDiffuserGenerator
pipelines:
- name: my_pipeline
nodes:
- inputs:
- Query
name: Retriever
- inputs:
- Retriever
name: Reranker
- inputs:
- Reranker
name: Reader
- inputs:
- Reader
name: Image_gen
version: 1.12.2