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): replace custom proposer example with reference to ReActModuleProposer
Address PR comment #6 by simplifying the custom proposer documentation.
Changes:
- Replace long inline implementation example with clickable GitHub link
- Point to ReActModuleProposer as reference implementation
- Add bulleted list of what the reference shows (parsing, dynamic signatures, etc.)
- Keep essential JSON structure and interface documentation
- Remove 100+ lines of redundant code example
Benefits:
- Less overwhelming for users (no duplicate code)
- Single source of truth (reference implementation)
- Clickable link to actual working code on GitHub
- Users can copy/modify real implementation instead of example
Addresses PR comment from @LakshyAAAgrawal about using reference instead
of full implementation example.
instruction_proposer=CustomProposer(), # Receives ALL components (regular + ReAct)
864
-
optimize_react_components=True, # Must be True to discover ReAct modules
865
-
auto="medium"
866
-
)
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:
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