potpie
potpie copied to clipboard
Centralised prompt management
Centralize Prompt Management System
Problem
Prompts are currently hardcoded across different files, making maintenance and model-specific optimizations difficult.
Proposed Solution
Create a dedicated prompt management system with:
- Separate prompt files organized by provider/model
- Dynamic loading based on provider/model combination
- Fallback mechanism for unsupported combinations
Implementation Details
-
Create new file(s) under
app/modules/intelligence/prompts -
Implement loader function to:
- Accept provider/model parameters
- Attempt to load specific prompts
- Fall back to default if not found
Acceptance Criteria
- [ ] Structured prompt files by provider/model
- [ ] Dynamic prompt loading system
- [ ] Default fallback mechanism
- [ ] Migration of existing hardcoded prompts