posted an update

1. Regulatory Sources & Extraction Improvements

  • Expanded REGULATORY_SOURCES and SOURCE_FULL_NAMES:
    Added more regions (Africa, Middle East, Canada, Australia, China, India, Japan, Brazil, Russia, UK) and sector-specific sources (IT, AI, technology, telecom) for broader regulatory coverage.
  • Parameter Extraction Prompt:
    Now uses variable-driven lists for industries and regions, including IT, AI, and more, for better accuracy and easier updates.

2. Report Generation & UI/UX Enhancements

  • Report Prompt Structure:
    Improved the compliance report prompt for clarity, structure, and readability, with clear sections, bullet points, and actionable summaries.
  • Avatar Image:
    Changed the default avatar image path to a local file (./images/avatar.png) for reliability and customization.

3. Gradio UI & Tool Usage Display

  • Collapsible Accordions for Tool Usage:
    Adopted Gradio’s recommended approach for displaying tool usage and intermediate steps using the metadata["title"] field in ChatMessage.
    • Tool usage, parameter extraction, tool execution, raw data, and memory are now shown in collapsible sections.
    • The compliance report and completion message are standard chat messages (not collapsible).
  • Single Dropdown for Raw Data & Memories:
    Removed nested <details> blocks so only one dropdown is shown for "Raw Regulatory Data" and "Past Memories".
  • Default Collapsed State:
    Set the status: done in metadata for "Raw Regulatory Data" and "Past Memories" so they are collapsed by default.
  • Parameter Extraction & Memory Section Cleanliness:
    Removed duplicate headings/emojis from the content of parameter extraction and memory sections. Only the dropdown title contains the emoji/label; the content is a clean list or summary.
  • Section Renaming:
    • Changed "Raw Regulatory Data" dropdown emoji.
    • Changed "Related Past Queries" to "Past Memories".
  • Removed Results Summary:
    The "Results Summary" message (e.g., " Found X regulatory updates") was removed for a cleaner UI.
  • Completion Message:
    The elapsed time is now appended to the end of the compliance report, not as a separate message.

Log in or sign up for Devpost to join the conversation.