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
docs(gepa): make custom proposer section more approachable and clear
Improve the custom proposer documentation to be more user-friendly while
maintaining technical accuracy.
Changes:
- Warmer, more inviting opening ("best way to start")
- Concrete example with 'search' tool instead of generic placeholders
- Plain English explanations for each component ("How the agent reasons...")
- Clear separation: "What you can improve" vs "What to preserve"
- Simpler code example with inline comments explaining ReAct vs regular
- Concise "reference shows how to" bullets (3 key points)
- More approachable tone without sacrificing precision
This makes the advanced feature more accessible to users who need custom
optimization logic beyond the defaults.
Follows up on the previous commit addressing PR comment about custom proposer example.
Copy file name to clipboardExpand all lines: docs/docs/api/optimizers/GEPA/GEPA_Advanced.md
+42-18Lines changed: 42 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -754,35 +754,59 @@ for tool_name, tool in optimized_agent.tools.items():
754
754
755
755
#### Implementing a Custom Proposer for ReAct
756
756
757
-
If you need custom logic, you can start with the existing implementation at [`ReActModuleProposer`](https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/gepa/instruction_proposal.py). This reference implementation shows how to:
757
+
If you need custom optimization logic beyond the default, you can build your own proposer. The best way to start is by looking at the reference implementation: [`ReActModuleProposer`](https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/gepa/instruction_proposal.py).
758
758
759
-
- Parse ReAct JSON configurations with `json.loads()`
760
-
- Build dynamic signatures for tools and parameters
761
-
- Call the reflection LM to optimize all components jointly
0 commit comments