# content.py def get_response_format(query_type): """ Defines AI response formatting using HTML for better visual appeal. """ response_templates = { "default": "

{response}

", # Standard paragraph format "paragraph": "
📝 Detailed Explanation:

{response}
", "bullet_points": ( "
" "🔹 Key Points:
" ).replace("{response}", "{response}"), # Fix incorrect replacement "points_with_paragraph": ( "
" "📝 Overview:

{paragraph}

" "🔹 Key Takeaways:
" ).replace("{paragraph}", "{response}").replace("{points}", "{response}"), "bold": "{response}", "italic": "{response}", "underline": "{response}", } return response_templates.get(query_type, response_templates["default"])