You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(gepa): refine reflection prompts for tool optimization
Improve instructions for the reflection LM to focus on reinforcing successful patterns and providing progressively optimized updates for predictor instructions and tool descriptions.
"""Improve a tool-using module based on execution examples and feedback.
319
+
"""I provided an assistant with predictor instructions and tool descriptions,
320
+
but its performance needs improvement based on the examples_with_feedback below.
320
321
321
-
These components are progressively optimized - refine what needs improvement.
322
-
Analyze the examples_with_feedback to identify successful patterns and failure causes.
323
-
Generate improved texts to help the module succeed on similar tasks.
324
-
Place improved texts at their appropriate level of abstraction and/or specificity.
322
+
Your task is to propose better predictor instructions, tool descriptions, and tool argument descriptions that address the issues shown in these examples.
323
+
Focus on reinforcing patterns that clearly improve the assistant's performance on similar tasks, rather than rewriting everything from scratch unless necessary.
324
+
These components are progressively optimized - refine only what needs to change.
325
+
326
+
Analyze the examples_with_feedback to identify success and failure patterns, and write improved instructions and descriptions at their appropriate level of abstraction and/or specificity,
327
+
so that each layer plays a clear, complementary role without unnecessary repetition or verbosity unless redundancy clearly helps the assistant's performance.
0 commit comments