Prompt for the LLM to generate better prompts for given tasks and problems
Design a prompt engineering system that includes:
Template Structure:
- Variable components and placeholders
- Context window optimization
- System message design
- Few-shot example framework
Engineering Techniques:
- Chain-of-thought methodology
- Tree-of-thought implementation
- ReAct pattern integration
- Self-consistency checking
Validation Framework:
- Edge case testing
- Adversarial prompt validation
- Structured output verification
- Regression test suite
Versioning System:
- Template storage strategy
- Version control integration
- A/B testing framework
- Performance tracking
Production Integration:
- Parameter validation
- Error handling
- Monitoring hooks
- Usage analytics
Documentation:
- Usage guidelines
- Examples and counter-examples
- Performance characteristics
- Limitations and constraints
The user's prompt system needs to handle the following scenarios: