We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29c75fc + 09842d0 commit bdc8c71Copy full SHA for bdc8c71
src/gepa/proposer/reflective_mutation/reflective_mutation.py
@@ -70,6 +70,13 @@ def propose_new_texts(
70
raise ValueError("reflection_lm must be provided when adapter.propose_new_texts is None.")
71
new_texts: dict[str, str] = {}
72
for name in components_to_update:
73
+ # Gracefully handle cases where a selected component has no data in reflective_dataset
74
+ if name not in reflective_dataset or not reflective_dataset.get(name):
75
+ self.logger.log(
76
+ f"Component '{name}' is not in reflective dataset. Skipping."
77
+ )
78
+ continue
79
+
80
base_instruction = candidate[name]
81
dataset_with_feedback = reflective_dataset[name]
82
new_texts[name] = InstructionProposalSignature.run(
0 commit comments