Upload configuration file
Browse files- config/parse_zayne_pdfs.yaml +48 -0
config/parse_zayne_pdfs.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: create_urls
|
| 3 |
+
config:
|
| 4 |
+
type: function
|
| 5 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.create_url_dataset
|
| 6 |
+
function_config:
|
| 7 |
+
urls:
|
| 8 |
+
- "https://www.asi.edu.au/wp-content/uploads/2024/02/ASOE-Chemistry-2023-Exam-Paper.pdf"
|
| 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: cpu_function
|
| 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 |
+
# - id: generate_plan_instructions
|
| 18 |
+
# config:
|
| 19 |
+
# type: completions
|
| 20 |
+
# map: gemini_ocr
|
| 21 |
+
# map_config:
|
| 22 |
+
# pdf_url_column: "pdf_url"
|
| 23 |
+
# output_extraction_column: "output_extraction"
|
| 24 |
+
# page_number_column: "page_number"
|
| 25 |
+
# model: "gemini/gemini-2.0-flash-lite-preview-02-05"
|
| 26 |
+
# backend_params:
|
| 27 |
+
# invalid_finish_reasons: ["content_filter"],
|
| 28 |
+
# max_requests_per_minute: 100,
|
| 29 |
+
# max_tokens_per_minute: 1_000_000,
|
| 30 |
+
# input_ids:
|
| 31 |
+
# - process_pdfs
|
| 32 |
+
# - id: generate_plan_instructions
|
| 33 |
+
# config:
|
| 34 |
+
# type: completions
|
| 35 |
+
# map: list_qa
|
| 36 |
+
# map_config:
|
| 37 |
+
# user_message: |
|
| 38 |
+
# Extract all of the questions and answer choices from the following text.
|
| 39 |
+
# If a question references an image or content not found in the text, ignore it.
|
| 40 |
+
# Capture all relevant context for each question.
|
| 41 |
+
|
| 42 |
+
# {{output_extraction}}
|
| 43 |
+
# """
|
| 44 |
+
# output_instruction_column: extracted_question
|
| 45 |
+
# output_response_column: extracted_response
|
| 46 |
+
# model: gpt-4o-mini
|
| 47 |
+
# input_ids:
|
| 48 |
+
# - process_pdfs
|