Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centralised prompt management #189

Open
4 tasks
dhirenmathur opened this issue Nov 22, 2024 · 0 comments
Open
4 tasks

Centralised prompt management #189

dhirenmathur opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dhirenmathur
Copy link
Contributor

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 dhirenmathur added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2024
@vineetshar vineetshar self-assigned this Dec 5, 2024
@vineetshar vineetshar linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants