Skip to content

How to Optimize Existing Prompt #8800

@NickL77

Description

@NickL77

Hi, I'm looking to optimize an existing system prompt we already have. How can I initialize the program with my existing prompt and have GEPA start from there? I tried something like:

state = program.signature.dump_state()
state["instructions"] = STARTING_INSTRUCTIONS
program.signature.load_state(state)

but GEPA seemed to just reinitialize the instructions.

A couple other features I'm interested in (and haven't found in tutorials or documentation):

  1. Freezing certain parts of the prompt
  2. Certain frozen parts can be re-ordered (ie I have a set of in-context learning examples that I don't want to be modified but GEPA can change the order of them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions