Spaces:
Runtime error
Runtime error
Commit History
-
refactor: imporve message research agent
e6cf85e -
feat: platform-specific social media content drafting [ai]
Replace the short communication recommendation with a full platform-aware content draft. LinkedIn produces a 350-600 word post; Instagram produces a 5-6 slide carousel with title + body per slide; Twitter/X produces a 4-6 tweet thread. Platform and audience selectors sit side-by-side below the topic results. Each (query, audience, platform) combination is cached independently so switching platforms is instant after the first render.4dd8cf7 -
feat: decouple audience selection from core pipeline [ai]
Split run_research_agent into run_core_pipeline (topic model, audience- independent) and run_communication_layer (followups + recommendation). Each is cached separately. Audience selector moves below the topic results so changing it only re-runs two cheap LLM calls, not the full pipeline.29ea6a7 -
feat: granular step progress via graph.stream() and st.status [ai]
Replace single blocking spinner with per-node st.status updates. run_research_agent now accepts an on_step callback and uses graph.stream() so each completed node emits its step message live. Caching moves from @st.cache_data to a session_state dict keyed by (query, audience, env) — same-query runs are instant, first runs show live progress.d253d8a -
feat: refactor pipeline as LangGraph agent with deterministic topic model and caching [ai]
Replaces the flat sequential pipeline with a LangGraph state machine that adds: - Research plan generation before fetching papers - Search quality inspection with automatic keyword refinement (up to 1 retry) - Science communication angle and follow-up question generation - Audience selector (general public, clinicians, researchers, etc.) - Agent workflow sidebar showing live step trace Topic model determinism: seed Python random and numpy before BERTopic, pin KMeans to random_state=42 and n_init=1. Full agent run is cached with @st.cache_data so the same query+audience never re-runs the pipeline. Linear fallback preserves identical logic when LangGraph is unavailable.89f5a1a