-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
type:feature requestNew feature request/enhancementNew feature request/enhancementtype:helpSupport-related issuesSupport-related issues
Description
Description of the feature request:
Create a notebook showing how Gemini optimizes prompts through self-critique.
The notebook demonstrates:
- Taking an initial user prompt
- Generating a response
- Having Gemini critique its own output
- Suggesting prompt improvements
- Re-running with the improved prompt
- Comparing before and after results
The core loop:
- Run prompt
- Evaluate output quality
- Identify weaknesses
- Rewrite prompt
- Run again
- Show improvement
What problem are you trying to solve with this feature?
Prompt engineering is trial and error. Developers manually tweak prompts dozens of times before getting good results.
This notebook shows Gemini doing the optimization work. You give a rough prompt. Gemini refines it for you.
No existing cookbook example covers meta-prompting or self-critique patterns.
Benefits for developers:
- Faster prompt iteration
- Learn what makes prompts effective
- Reduce manual experimentation
Any other information you'd like to share?
Proposed structure:
- Setup and API configuration
- Define a sample task with a weak prompt
- Run the weak prompt and show output
- Have Gemini critique the output
- Have Gemini rewrite the prompt
- Run the improved prompt
- Compare outputs side by side
- Repeat loop 2-3 times to show iterative gains
I will build this notebook if the team approves the concept.
Metadata
Metadata
Assignees
Labels
type:feature requestNew feature request/enhancementNew feature request/enhancementtype:helpSupport-related issuesSupport-related issues