agentic-rag-policy-assistant/app
Daniel Plank 4956b401a3 Streamlit UI polish: native theming, multi-chat sessions, follow-ups
Fix the dark/brownish custom theme by dropping the custom [theme] config
entirely and relying on Streamlit's native light/dark switcher instead (a
custom theme block hides that switcher outright - confirmed by reading
the compiled frontend JS). Only the native "Deploy" toolbar button is
hidden now, via scoped CSS on its own test id.

Move the example questions above the chat input and auto-hide them once
a real message is sent in that session (rendered through
components.v1.html so its script can reach across to the chat input's
textarea directly and react live to theme switches via a
MutationObserver, instead of st.markdown which strips <script> tags).

Add per-session chat management in the sidebar: a "New chat" row at the
bottom of the session list with sessions listed above it, a delete icon
per session, and move the Config/connection info out of the main page
into a dialog. Removed emojis from the UI.

Also add a lightweight answer follow-up feature: after each answer, the
LLM suggests up to 3 clickable follow-up questions
(app/llm.py::generate_followups), rendered with the same clickable-card
component as the examples, plus a thumbs up/down st.feedback widget per
answer (display-only for now, not wired to anything yet).
generate_followups introduces wrap_user_input/PROMPT_INJECTION_GUARD in
app/llm.py, which the next commit reuses for the rest of the prompts.

Refs #14
2026-11-09 22:00:45 +01:00
..
data/policies Add synthetic internal policy corpus for the RAG knowledge base 2026-11-05 18:01:48 +01:00
rag Corrective RAG subgraph 2026-11-06 13:00:16 +01:00
tools Deterministic tools: PTO calculator and support ticketing 2026-11-05 22:55:52 +01:00
__init__.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00
config.py Switch to qwen2.5:14b on GPU (RTX 5070 Ti), fix routing regression 2026-11-08 22:09:55 +01:00
graph.py Switch to qwen2.5:14b on GPU (RTX 5070 Ti), fix routing regression 2026-11-08 22:09:55 +01:00
llm.py Streamlit UI polish: native theming, multi-chat sessions, follow-ups 2026-11-09 22:00:45 +01:00
state.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00
tracing.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00