EtashGuha commited on
Commit
6fc369f
·
verified ·
1 Parent(s): 36b9f33

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/addition_pdf_flow.yaml +37 -0
config/addition_pdf_flow.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ # - id: load_pdf_questions
3
+ # config:
4
+ # type: "hf_source"
5
+ # dataset: "mlfoundations-dev/parse_zayne_pdfs"
6
+ # split: train
7
+ - id: load_seed_code
8
+ config:
9
+ type: load_preexisting
10
+ framework_name: parse_zayne_pdfs
11
+ - id: validate_questions
12
+ config:
13
+ type: completions
14
+ model: gpt-4o-mini
15
+ map: binary_classifier
16
+ map_config:
17
+ user_message: |
18
+ Yes or No, is the question below answerable? If the question refers to content (figures, equations, additional text) that you cannot see, then it is unanswerable.
19
+
20
+ Question:
21
+ {{improved_question}}
22
+ output_column: qa_validation_outputs
23
+ temperature: 0.0 # From stage 1
24
+ top_p: 1.0
25
+ presence_penalty: 0.0
26
+ input_ids:
27
+ - load_seed_code
28
+
29
+ - id: filter_by_validation_output
30
+ config:
31
+ type: function
32
+ function: data_strategies.commons.select_rows
33
+ function_config:
34
+ conditions:
35
+ qa_validation_outputs: True
36
+ input_ids:
37
+ - validate_questions