potpie icon indicating copy to clipboard operation
potpie copied to clipboard

Centralised prompt management

Open dhirenmathur opened this issue 1 year ago • 0 comments

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

  1. Create new file(s) under app/modules/intelligence/prompts

  2. 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

dhirenmathur avatar Nov 22 '24 14:11 dhirenmathur