GEPA Optimized on Clinical Impact Judge
This commit is contained in:
8
src/llm_judge/optimizers/gepa.py
Normal file
8
src/llm_judge/optimizers/gepa.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from dspy.teleprompt import GEPA
|
||||
|
||||
|
||||
def build_gepa(metric, reflection_lm=None, **kwargs):
|
||||
"""Construct a GEPA optimizer."""
|
||||
if reflection_lm is not None:
|
||||
kwargs["reflection_lm"] = reflection_lm
|
||||
return GEPA(metric=metric, **kwargs)
|
||||
Reference in New Issue
Block a user