forked from IntelLabs/RAG-FiT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessing-pubmed-context.yaml
41 lines (34 loc) · 1.17 KB
/
processing-pubmed-context.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
name: pubmed_rag
cache: true
output_path: .
steps:
- _target_: ragfoundry.processing.dataset_loaders.loaders.HFLoader
inputs: train
dataset_config:
path: bigbio/pubmed_qa
split: train
- _target_: ragfoundry.processing.dataset_loaders.loaders.HFLoader
inputs: test
dataset_config:
path: bigbio/pubmed_qa
name: pubmed_qa_labeled_fold0_source
split: test
- _target_: ragfoundry.processing.global_steps.sampling.ShuffleSelect
inputs: train
limit: 50000
- _target_: ragfoundry.processing.local_steps.common_datasets.PubMed
inputs: [train, test]
- _target_: ragfoundry.processing.local_steps.context.DocumentsJoiner
inputs: [train, test]
docs_key: positive_passages
k: 5
- _target_: ragfoundry.processing.local_steps.prompter.TextPrompter
inputs: [train, test]
prompt_file: ragfoundry/processing/prompts/qa.txt
output_key: prompt
mapping:
question: query
context: positive_passages
- _target_: ragfoundry.processing.global_steps.output.OutputData
inputs: [train, test]
prefix: pubmed-rag