Skip to content

Commit 614e989

Browse files
committed
fix: Enforce line breaks trong formatting rules - thêm instruction MANDATORY line breaks
1 parent 90aee31 commit 614e989

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

backend/identity/formatting.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ def get_formatting_rules(domain: DomainType, detected_lang: str = "vi") -> str:
102102
else:
103103
return """**🚨 CRITICAL: RESPONSE FORMATTING REQUIREMENT 🚨**
104104
- **MUST use markdown formatting**: Line breaks, bullet points, headers for readability
105-
- **Long answers (>3 sentences)**: MUST use line breaks between paragraphs
106-
- **Lists**: MUST use bullet points (`-` or `*`)
107-
- **Multiple topics**: MUST use headers (`##`) to separate sections
105+
- **CRITICAL: Line breaks are MANDATORY**: You MUST use `\n\n` (double newline) between paragraphs to ensure proper line breaks in output
106+
- **Long answers (>3 sentences)**: MUST use line breaks between paragraphs (use `\n\n` between paragraphs)
107+
- **Lists**: MUST use bullet points (`-` or `*`) with line breaks between items
108+
- **Multiple topics**: MUST use headers (`##`) to separate sections with line breaks before and after
108109
- **Emojis**: **MUST use 2-3 emojis per response** for section headers, status indicators (✅, ❌, ⚠️, 💡, 📚, 🎯, 🔍, 📊, ⚙️)
109110
- **CRITICAL**: StillMe responses SHOULD include emojis to enhance readability and make responses more engaging
110111
- Use emojis strategically: section headers, status indicators, visual breaks

0 commit comments

Comments
 (0)