Skip to content

Commit 0230241

Browse files
committed
fix: resolve metadata for single dataset
1 parent 458756d commit 0230241

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

sygra/core/base_task_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ def _load_source_data(
536536
if isinstance(source_config, dict):
537537
# if single dataset configured as dict - existing flow
538538
source_config_obj = DataSourceConfig.from_dict(source_config)
539+
# Store source config for metadata collection
540+
self.source_config = source_config_obj
539541
reader = self._get_data_reader(source_config_obj)
540542
full_data = self._read_data(reader, source_config_obj)
541543

tasks/examples/glaive_code_assistant/graph_config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ graph_config:
1818
node_type: llm
1919
prompt:
2020
- system: |
21-
You are an assistant tasked with solving coding problems.
21+
You are an assistant tasked with solving coding problems.
2222
If the user provides critique, respond with a revised answer of your previous attempts. Do NOT generate any conversational text or apologize if your previous answer was incorrect. Respond only with the answer for the question.
2323
- user: |
2424
{question}
2525
model:
26-
name: gpt-4o
26+
name: gpt-4o-mini
2727
parameters:
2828
temperature: 0.1
2929
critique_answer:
3030
pre_process: tasks.examples.glaive_code_assistant.task_executor.CritiqueAnsNodePreProcessor
3131
node_type: llm
3232
prompt:
33-
- system: |
33+
- system: |
3434
You are a teacher grading a solution to a coding problem. Generate critique and recommendations for the user's submission by using the reference solution as a guide. It is not mandatory for the user solution to match exactly with the reference solution as long as it is logical and leads to the right solution.
3535
If the answer, including all the steps, is correct, respond with 'NO MORE FEEDBACK'. Respond with 'NO MORE FEEDBACK' only after the user has corrected all the steps. Address the user in second person using 'you' and 'your'.
36-
36+
3737
QUESTION: {question}
3838
REFERENCE SOLUTION: {answer}
3939
model:
40-
name: gpt-4o
40+
name: gpt-4o-mini
4141
parameters:
4242
temperature: 0.1
4343
post_process: tasks.examples.glaive_code_assistant.task_executor.CritiqueAnsNodePostProcessor

0 commit comments

Comments
 (0)