BeatDebate / src

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

Enhance follow-up detection logic in RecommendationService - Added checks to differentiate between follow-up queries and new primary artist queries based on current and previous artist mentions. Updated context handling rules in ContextAwareIntentAnalyzer to clarify follow-up criteria and improve intent management. This update aims to refine user experience by ensuring accurate query handling and maintaining session context effectively.
92105b4

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

Implement Phase 3 enhancements for candidate pool persistence in recommendation agents - Introduced `SessionManagerService` to support candidate pool generation and retrieval across `UnifiedCandidateGenerator`, `DiscoveryAgent`, `JudgeAgent`, and `GenreMoodAgent`. Updated agent initialization to accept session manager, enabling efficient follow-up query handling and improved user experience. Added methods for generating and persisting large candidate pools, as well as retrieving candidates from persisted pools, ensuring better performance and responsiveness in music recommendations. This update aims to streamline agent logic and enhance the overall recommendation system.
7c746f1

SulmanK commited on

Enhance intent management and context handling in the recommendation system - Introduced `SessionManagerService` and `IntentOrchestrationService` to centralize intent processing and improve follow-up query handling. Refactored `EnhancedRecommendationService` to integrate these new services, ensuring agents receive a clear "effective intent" for better decision-making. Updated scoring logic in `ComprehensiveQualityScorer` for improved robustness. This update aims to streamline agent logic, enhance user experience with follow-ups, and support ongoing refactoring efforts.
77e3fb9

SulmanK commited on

Remove obsolete test scripts for follow-up behavior, detection fix, history filtering, hybrid context, Kendrick follow-up, simple extraction, and state management - Deleted multiple test files to streamline the codebase and eliminate unused tests. This cleanup supports ongoing refactoring efforts and enhances overall project maintainability.
efdcc19

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

Enhance README.md and main.py for HuggingFace Spaces deployment - Updated README to include live demo links, deployment checklist, and detailed instructions for setting up HuggingFace Spaces. Improved main.py with enhanced environment detection for Spaces and optimized backend configuration, ensuring a smoother deployment experience. This update aims to provide clearer guidance for users and streamline the deployment process for the BeatDebate application.
4923cf4

SulmanK commited on

Enhance intent-aware recommendation system design and scoring logic - Updated the design document to introduce a new query type for "by artist" intent, detailing user goals, scoring strategies, and agent workflows. Refactored scoring logic in the quality scorer and ranking logic to accommodate exploration preferences and artist alias handling. Improved candidate generation for artist-specific queries and refined genre filtering methods to support hybrid queries. This update aims to better align system behavior with user intent and enhance overall recommendation accuracy.
2092684

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

Remove obsolete test files and enhance agent initialization - Deleted unused test files `test_backend_fixes.py` and `test_query_fix.py` to streamline the codebase. Updated agent initialization in `EnhancedRecommendationService` to include rate limiting for improved API management and performance. This cleanup supports ongoing refactoring efforts and enhances the overall structure of the project.
c8ec42b

SulmanK commited on

Remove obsolete test files and refactor agent imports - Deleted unused test files for `test_fix.py` and `test_smart_context.py`. Updated agent imports in `__init__.py` and other files to streamline the codebase and improve maintainability. This cleanup supports ongoing refactoring efforts and enhances the overall structure of the project.
fec9e33

SulmanK commited on

Enhance UnifiedTrackMetadata and Services Module - Added recommendation-specific fields and audio features to UnifiedTrackMetadata for improved track metadata handling. Updated services module to include enhanced API and recommendation services, streamlining workflows and maintaining backward compatibility.
dec38e9

SulmanK commited on

Phase 2: API Layer Refactoring Complete - Refactored LastFM and Spotify clients to use BaseAPIClient, eliminated ~104 lines of duplicate code, unified HTTP handling and rate limiting
b1d075d

SulmanK commited on

Phase 1: Core infrastructure for comprehensive codebase refactoring - BaseAPIClient, UnifiedRateLimiter, UnifiedMetadata models, APIClientFactory - Foundation for eliminating ~5000 lines of duplicate code
3aba6a9

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

Phase 2.3: Update Design Documents and pyproject.toml - Revised design documents to reflect implementation details for JudgeAgent and PlannerAgent, including evaluation framework and diversity targets. Increased line length limit in pyproject.toml for code formatting consistency.
e6cbce9

SulmanK commited on

Phase 2.2: Enhance Design Documentation and Update pyproject.toml - Increase line length limit for Ruff, clarify GenreMoodAgent and DiscoveryAgent implementation details, and outline future considerations for ChromaDB integration and advanced caching strategies.
958625c

SulmanK commited on

Phase 2.1: Core Agent Infrastructure Complete - PlannerAgent with strategic planning, Pydantic models, BaseAgent class, comprehensive tests (11/11 passing, 90% coverage)
f9db034

SulmanK commited on

feat: Update environment configuration and documentation - Add Last.fm shared secret to env.example - Enhance README with Last.fm API key and shared secret details - Modify LastFmClient to accept shared secret as an optional parameter
18c94bd

SulmanK commited on

feat: Add comprehensive .gitignore - Protect .env files and my_secrets.md - Exclude Python cache files and build artifacts - Remove tracked __pycache__ files - Include BeatDebate-specific exclusions
0babe0f

SulmanK commited on

fix: Resolve linter errors in main.py
8c4790b

SulmanK commited on

feat: Complete Phase 1 - Foundation and API clients
965b972

SulmanK commited on