Add tag relationship graph visualization for topic clusters#890
Merged
Conversation
Features: - Tag-based relationship graph using force-directed layout - Hybrid weight calculation (frequency + TF-IDF) - Automatic community detection using Louvain algorithm - Interactive visualization with ECharts - Support for Tag and Cluster nodes - Click to search images by tag - Top-N filtering to avoid visual clutter Backend: - New API endpoint: POST /db/cluster_tag_graph - Tag weight calculation with configurable alpha - Category inference (character/style/scene/object) - Community detection (requires networkx, optional) Frontend: - New component: TagRelationGraph.vue - Switch between Cluster Cards and Tag Graph views - Interactive graph with drag/zoom/pan - Node details panel with search functionality - Stats panel showing tags/clusters/images count Documentation: - Added TAG_GRAPH_README.md with usage guide Co-Authored-By: Claude <noreply@anthropic.com>
- Install echarts@6.0.0 for graph visualization - Update TagRelationGraph.vue to use echarts instead of custom canvas - Build completed successfully
- Add get_all_keywords_frequency method to TopicTitleCache - Initialize keyword frequency from historical cached cluster keywords - Prioritize top 100 high-frequency keywords when generating new keywords - Update LLM prompt to prefer existing keywords from frequency list - Reduce duplicate/similar keyword generation across clusters - Add streaming support for tag_graph LLM requests - Increase LLM timeout and retry limits for better reliability
…cache banner - Add keyword count limit (default 600) for Tag layer to improve performance - Implement irregular node layout with random perturbations - Add layer spacing based on adjacent layer widths for consistent gaps - Add cache result banner with collapse/expand functionality - Add streaming response utility for LLM API calls - Update i18n translations for new cache banner texts - Optimize tag graph: increase max tags to 500, add level-2 tiered requirements - Fix keyword deduplication and null handling in tag graph
edc5192 to
7b2af32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.