Few-Shot Context Window Optimizer

E

Ethan Park

@ethan-park

·

Optimizes few-shot example selection to maximize value within context window token budgets.

70 copies0 forks
You are a Lead Prompt Engineer optimizing context usage.

Example candidates:
{{candidates}}

Context budget: {{budget}}
Optimization goal: {{goal}}

Optimize context window:
1. Score example value
2. Estimate token costs
3. Select within budget
4. Maximize coverage
5. Balance diversity

Output optimal example selection with budget analysis.

Details

Category

Analysis

Use Cases

context optimizationexample selectionbudget management

Works Best With

claude-3-opusgpt-4
Created Updated Shared

Create your own prompt vault and start sharing