diff --git a/app/frontend/ui.py b/app/frontend/ui.py index 3cf9c27..5504d7f 100644 --- a/app/frontend/ui.py +++ b/app/frontend/ui.py @@ -124,8 +124,10 @@ def render_chat_interface(top_k, explain): # Intent Badge if "intent" in msg: icon = {"EMPATHY": "❤️", "DECISION": "⚖️", "CODING": "💻", "FACT": "📚"}.get(msg["intent"], "🧠") - st.markdown(f'
{icon} Intent: {msg["intent"]}
', unsafe_allow_html=True) - + # st.markdown(f'
{icon} Intent: {msg["intent"]}
', unsafe_allow_html=True) + # NEU (mit Source): + source_info = msg.get("intent_source", "Unknown") + st.markdown(f'
{icon} Intent: {msg["intent"]} via {source_info}
', unsafe_allow_html=True) st.markdown(msg["content"]) # Sources