GEPAPrompts

Prompt templates used by GEPA's reflection LM for instruction proposal and crossover.

Functions

Link copied to clipboard
fun crossoverPrompt(moduleName: String, instructionA: String, scoreA: Double, instructionB: String, scoreB: Double): Prompt

Builds a crossover prompt: given two candidate instructions for the same module, merge the best aspects of both into a single improved instruction.

Link copied to clipboard
fun reflectionAndProposalPrompt(moduleName: String, currentInstruction: String, failures: List<GEPAReflectionProposer.FailureFeedback>): Prompt

Builds a reflection prompt for the GEPA reflection LM.