Skip to content

Refacto prompt - #105

Merged
EnjoyBacon7 merged 2 commits into
devfrom
refacto-prompt
Oct 21, 2025
Merged

Refacto prompt#105
EnjoyBacon7 merged 2 commits into
devfrom
refacto-prompt

Conversation

@Ahmath-Gadji

Copy link
Copy Markdown
Collaborator

Summary:
This PR centralizes and simplifies prompt management across the codebase.

Key changes:

  • Centralized prompt loading: Added openrag/components/prompts/prompts.py to manage all prompt strings (SYS_PROMPT_TMPLT, HYDE_PROMPT, etc.) from a single module, replacing scattered file loads and utility functions.

  • Refactored imports: Updated all modules (chunker.py, retriever.py, pipeline.py, etc.) to use the new centralized prompts.

  • Configuration cleanup:

    • Standardized the prompts: section in .hydra_config/config.yaml.
    • Unified default prompt directory to ../prompts/example1.
    • Removed redundant prompt_tmpl fields in YAML configs.
  • Prompt file cleanup: Deleted outdated and duplicate prompt files

@EnjoyBacon7
EnjoyBacon7 merged commit e6e39e9 into dev Oct 21, 2025
@EnjoyBacon7
EnjoyBacon7 deleted the refacto-prompt branch October 21, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants