BeatDebate / src /ui /chat_interface.py

Commit History

Update competition links in chat interface to reflect new resources - Changed the AgentX submission link to the updated URL and modified the GitHub repository link for better accuracy. This update aims to ensure users have access to the correct and current resources related to the project.
3620bb2

SulmanK commited on

Refactor chat interface for per-user session management - Removed global session and conversation history management, transitioning to a per-user model using `gr.State`. Updated message processing to include user-specific session IDs, enhancing multi-user safety and improving fallback handling. This update aims to streamline user interactions and maintain session context effectively.
0fecfba

SulmanK commited on

Update README and TODO files for improved clarity and organization - Revised the project structure in the README to enhance readability and reflect recent changes, including the addition of new components and services. Updated the TODO file to provide a comprehensive test design plan, outlining key testing strategies and directory structure for better organization. This update aims to streamline future development efforts and facilitate collaboration on the BeatDebate application.
b27df3a

SulmanK commited on

Merge pull request #2 from SulmanK/refactor/production-refinement
1ca6876

Sulman Khan commited on

Remove obsolete phase completion summaries and demo test scripts - Deleted `PHASE1_COMPLETION_SUMMARY.md`, `PHASE2_COMPLETION_SUMMARY.md`, `PHASE3_COMPLETION_SUMMARY.md`, and associated demo test scripts to streamline the codebase and eliminate unused documentation. This cleanup supports ongoing refactoring efforts and enhances overall project maintainability.
d5eabda

SulmanK commited on

feat: implement LLM fallback system for unknown intents - Add LLMFallbackService with Gemini Flash 2.0 integration - Implement fallback trigger detection in chat interface - Add response formatter support for fallback disclaimers - Include comprehensive test coverage for fallback scenarios
cde66c2

SulmanK commited on

Enhance chat interface with new query examples and improved UI elements - Updated `QUERY_EXAMPLES` to include additional queries for "By Artist" and "Follow-ups" categories, enhancing user interaction. Modified UI markdown to reflect the advanced 4-agent recommendation system and improved clarity in example sections. This update aims to provide users with a richer experience and better guidance in utilizing the music discovery features.
b7699a5

SulmanK commited on

Add autopep8 as a dependency for code formatting - Updated pyproject.toml to include autopep8 version 2.3.2 for improved code style consistency. Modified uv.lock to reflect the new dependency and its requirements. This update aims to enhance code maintainability and adherence to style guidelines.
f7943d1

SulmanK commited on

Update configuration files and remove obsolete test scripts - Increased line length limit in `pyproject.toml`, `test_hybrid_intent_final.py`, `test_hybrid_intent_fix.py`, `test_hybrid_subtypes.py`, `test_intent_fix.py`, `test_quick_hybrid.py`, `test_ui_improvements.py` to enhance code formatting flexibility. Deleted unused test files to streamline the codebase and improve maintainability. This cleanup supports ongoing refactoring efforts and enhances overall project structure.
d71324e

SulmanK commited on

Update .gitignore and remove obsolete cleanup documentation - Added `.gradio` and `tests/data/cache` to `.gitignore` to prevent unnecessary file tracking. Deleted outdated cleanup documentation files (`AGENT_CLEANUP_COMPLETION.md` and `CLEANUP_PLAN.md`) to streamline the codebase and remove obsolete references. This cleanup supports ongoing refactoring efforts and enhances overall project maintainability.
42651db

SulmanK commited on

Enhance PlannerAgent with entity recognition and coordination strategies - Implemented enhanced entity recognition and intent analysis in the PlannerAgent, allowing for improved query processing and coordination strategies. Updated the MusicRecommenderState model to include new fields for extracted entities, intent analysis, and conversation context. Enhanced logging and reasoning steps for better traceability during planning. Revised design documentation to reflect these changes and outline future enhancements.
00dd8ea

SulmanK commited on

Update dependencies and enhance logging and configuration - Added google-generativeai to pyproject.toml and uv.lock, improved logging in main.py, and updated environment variable loading for better configuration management. Also, refined the .gitignore to include .gradio directory.
5f7cada

SulmanK commited on

Phase 3 Frontend Implementation Complete
565ca46

SulmanK commited on