Upload configuration file
Browse files- config/parse_zayne_pdfs.yaml +16 -17
config/parse_zayne_pdfs.yaml
CHANGED
|
@@ -9,26 +9,25 @@ operators:
|
|
| 9 |
- "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE-Chemistry-2022-ASDAN-questions-only.pdf"
|
| 10 |
- id: process_pdfs
|
| 11 |
config:
|
| 12 |
-
type:
|
| 13 |
-
num_cpus: 1
|
| 14 |
function: data_strategies.32b_exploit.seed_pdf_parser.utils.get_all_page_counts
|
| 15 |
input_ids:
|
| 16 |
- create_urls
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
# - id: generate_plan_instructions
|
| 33 |
# config:
|
| 34 |
# type: completions
|
|
|
|
| 9 |
- "https://www.asi.edu.au/wp-content/uploads/2023/05/ASOE-Chemistry-2022-ASDAN-questions-only.pdf"
|
| 10 |
- id: process_pdfs
|
| 11 |
config:
|
| 12 |
+
type: async_function
|
|
|
|
| 13 |
function: data_strategies.32b_exploit.seed_pdf_parser.utils.get_all_page_counts
|
| 14 |
input_ids:
|
| 15 |
- create_urls
|
| 16 |
+
- id: generate_plan_instructions
|
| 17 |
+
config:
|
| 18 |
+
type: completions
|
| 19 |
+
map: gemini_ocr
|
| 20 |
+
map_config:
|
| 21 |
+
pdf_url_column: "url"
|
| 22 |
+
output_extraction_column: "output_extraction"
|
| 23 |
+
page_number_column: "page_number"
|
| 24 |
+
model: "gemini/gemini-2.0-flash-lite-preview-02-05"
|
| 25 |
+
backend_params:
|
| 26 |
+
invalid_finish_reasons: ["content_filter"]
|
| 27 |
+
max_requests_per_minute: 100
|
| 28 |
+
max_tokens_per_minute: 1_000_000
|
| 29 |
+
input_ids:
|
| 30 |
+
- process_pdfs
|
| 31 |
# - id: generate_plan_instructions
|
| 32 |
# config:
|
| 33 |
# type: completions
|