Skip to content

[Feature] Negative Prompts using Examples trainings set #8702

@Solido

Description

@Solido

What feature would you like to see?

Using training sets to guide the LLM we generate a prompt in the form of

User message:

[[ ## query ## ]]
Nitroglycerin


Assistant message:

[[ ## range_value ## ]]
glyceryl trinitrate

I need to send some negative prompts but I would like to conserve the same data structure approach with a collection of dspy.Example.

How can I express that?

should I add another field in Example but then they are mixed with good process?

should I hack something in module description but then force an explicit format like list bullets?

Should there be a Negative property in compile like negativeTrainset or a NegativeExample?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions