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
Copy file name to clipboardExpand all lines: docs/docs/api/optimizers/GEPA.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,17 +149,25 @@ We invite community contributions of new instruction proposers for specialized d
149
149
150
150
### How to Implement Custom Instruction Proposers
151
151
152
-
Custom instruction proposers must implement the `ProposalFn` protocol:
152
+
Custom instruction proposers must implement the `ProposalFn` protocol by defining a callable class or function. GEPA will call your proposer during optimization:
153
153
154
154
```python
155
155
from dspy.teleprompt.gepa.gepa_utils import ReflectiveExample
156
156
157
-
def__call__(
158
-
self,
159
-
candidate: dict[str, str], # Candidate component name -> instruction mapping to be updated in this round
0 commit comments