Skip to content

Centralised prompt management #189

@dhirenmathur

Description

@dhirenmathur

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

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions