kleine Änderungen

This commit is contained in:
Lars 2025-12-09 23:12:07 +01:00
parent 2acaf3c060
commit 9bb6566419

View File

@ -124,8 +124,10 @@ def render_chat_interface(top_k, explain):
# Intent Badge # Intent Badge
if "intent" in msg: if "intent" in msg:
icon = {"EMPATHY": "❤️", "DECISION": "⚖️", "CODING": "💻", "FACT": "📚"}.get(msg["intent"], "🧠") icon = {"EMPATHY": "❤️", "DECISION": "⚖️", "CODING": "💻", "FACT": "📚"}.get(msg["intent"], "🧠")
st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]}</div>', unsafe_allow_html=True) # st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]}</div>', unsafe_allow_html=True)
# NEU (mit Source):
source_info = msg.get("intent_source", "Unknown")
st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]} <span style="opacity:0.6; font-size: 0.9em; margin-left:5px;">via {source_info}</span></div>', unsafe_allow_html=True)
st.markdown(msg["content"]) st.markdown(msg["content"])
# Sources # Sources