WeKnora/config/prompt_templates/rewrite_user.yaml

31 lines
871 B
YAML

# Rewrite user prompt templates
templates:
- id: "default_rewrite_user"
name: "Standard Format"
description: "Standard rewrite user prompt format"
content: |
## Conversation History
{{conversation}}
## User Question to Rewrite
{{query}}
## Rewritten Question
- id: "detailed_rewrite_user"
name: "Detailed Format"
description: "Detailed rewrite user prompt format"
content: |
## Conversation History
Please carefully read the following conversation history between the user and assistant to understand the context:
{{conversation}}
## Current User Question
{{query}}
## Task Requirements
Based on the above conversation history, rewrite the current question into an independent, complete question that can be understood without context.
## Rewritten Question