戒酒的李白

Update code structure tree documentation.

@@ -59,8 +59,10 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -59,8 +59,10 @@ Weibo_PublicOpinion_AnalysisSystem/
59 │ └── ... # Other modules 59 │ └── ... # Other modules
60 ├── MediaEngine/ # Powerful multimodal understanding Agent 60 ├── MediaEngine/ # Powerful multimodal understanding Agent
61 │ ├── agent.py # Agent main logic 61 │ ├── agent.py # Agent main logic
  62 +│ ├── nodes/ # Processing nodes
62 │ ├── llms/ # LLM interfaces 63 │ ├── llms/ # LLM interfaces
63 │ ├── tools/ # Search tools 64 │ ├── tools/ # Search tools
  65 +│ ├── utils/ # Utility functions
64 │ └── ... # Other modules 66 │ └── ... # Other modules
65 ├── InsightEngine/ # Private database mining Agent 67 ├── InsightEngine/ # Private database mining Agent
66 │ ├── agent.py # Agent main logic 68 │ ├── agent.py # Agent main logic
@@ -70,14 +72,14 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -70,14 +72,14 @@ Weibo_PublicOpinion_AnalysisSystem/
70 │ │ ├── openai_llm.py # OpenAI format API 72 │ │ ├── openai_llm.py # OpenAI format API
71 │ │ └── base.py # LLM base class 73 │ │ └── base.py # LLM base class
72 │ ├── nodes/ # Processing nodes 74 │ ├── nodes/ # Processing nodes
73 -│ │ ├── first_search_node.py # First search node  
74 -│ │ ├── reflection_node.py # Reflection node  
75 -│ │ ├── summary_nodes.py # Summary node 75 +│ │ ├── base_node.py # Base node class
  76 +│ │ ├── formatting_node.py # Formatting node
  77 +│ │ ├── report_structure_node.py # Report structure node
76 │ │ ├── search_node.py # Search node 78 │ │ ├── search_node.py # Search node
77 -│ │ ├── sentiment_node.py # Sentiment analysis node  
78 -│ │ └── insight_node.py # Insight generation node 79 +│ │ └── summary_node.py # Summary node
79 │ ├── tools/ # Database query and analysis tools 80 │ ├── tools/ # Database query and analysis tools
80 -│ │ ├── media_crawler_db.py # Database query tool 81 +│ │ ├── keyword_optimizer.py # Qwen keyword optimization middleware
  82 +│ │ ├── search.py # Database operation toolkit
81 │ │ └── sentiment_analyzer.py # Sentiment analysis integration tool 83 │ │ └── sentiment_analyzer.py # Sentiment analysis integration tool
82 │ ├── state/ # State management 84 │ ├── state/ # State management
83 │ │ ├── __init__.py 85 │ │ ├── __init__.py
@@ -88,7 +90,7 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -88,7 +90,7 @@ Weibo_PublicOpinion_AnalysisSystem/
88 │ └── utils/ # Utility functions 90 │ └── utils/ # Utility functions
89 │ ├── __init__.py 91 │ ├── __init__.py
90 │ ├── config.py # Configuration management 92 │ ├── config.py # Configuration management
91 -│ └── helpers.py # Helper functions 93 +│ └── text_processing.py # Text processing tools
92 ├── ReportEngine/ # Multi-round report generation Agent 94 ├── ReportEngine/ # Multi-round report generation Agent
93 │ ├── agent.py # Agent main logic 95 │ ├── agent.py # Agent main logic
94 │ ├── llms/ # LLM interfaces 96 │ ├── llms/ # LLM interfaces
@@ -105,14 +107,21 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -105,14 +107,21 @@ Weibo_PublicOpinion_AnalysisSystem/
105 │ └── monitor.py # Log monitoring and forum management 107 │ └── monitor.py # Log monitoring and forum management
106 ├── MindSpider/ # Weibo crawler system 108 ├── MindSpider/ # Weibo crawler system
107 │ ├── main.py # Crawler main program 109 │ ├── main.py # Crawler main program
  110 +│ ├── config.py # Crawler configuration file
108 │ ├── BroadTopicExtraction/ # Topic extraction module 111 │ ├── BroadTopicExtraction/ # Topic extraction module
  112 +│ │ ├── database_manager.py # Database manager
109 │ │ ├── get_today_news.py # Today's news fetching 113 │ │ ├── get_today_news.py # Today's news fetching
  114 +│ │ ├── main.py # Topic extraction main program
110 │ │ └── topic_extractor.py # Topic extractor 115 │ │ └── topic_extractor.py # Topic extractor
111 │ ├── DeepSentimentCrawling/ # Deep sentiment crawling 116 │ ├── DeepSentimentCrawling/ # Deep sentiment crawling
  117 +│ │ ├── keyword_manager.py # Keyword manager
  118 +│ │ ├── main.py # Deep crawling main program
112 │ │ ├── MediaCrawler/ # Media crawler core 119 │ │ ├── MediaCrawler/ # Media crawler core
113 │ │ └── platform_crawler.py # Platform crawler management 120 │ │ └── platform_crawler.py # Platform crawler management
114 │ └── schema/ # Database schema 121 │ └── schema/ # Database schema
115 -│ └── init_database.py # Database initialization 122 +│ ├── db_manager.py # Database manager
  123 +│ ├── init_database.py # Database initialization
  124 +│ └── mindspider_tables.sql # Database table structure
116 ├── SentimentAnalysisModel/ # Sentiment analysis model collection 125 ├── SentimentAnalysisModel/ # Sentiment analysis model collection
117 │ ├── WeiboSentiment_Finetuned/ # Fine-tuned BERT/GPT-2 models 126 │ ├── WeiboSentiment_Finetuned/ # Fine-tuned BERT/GPT-2 models
118 │ ├── WeiboMultilingualSentiment/# Multilingual sentiment analysis (recommended) 127 │ ├── WeiboMultilingualSentiment/# Multilingual sentiment analysis (recommended)
@@ -59,8 +59,10 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -59,8 +59,10 @@ Weibo_PublicOpinion_AnalysisSystem/
59 │ └── ... # 其他模块 59 │ └── ... # 其他模块
60 ├── MediaEngine/ # 强大的多模态理解Agent 60 ├── MediaEngine/ # 强大的多模态理解Agent
61 │ ├── agent.py # Agent主逻辑 61 │ ├── agent.py # Agent主逻辑
  62 +│ ├── nodes/ # 处理节点
62 │ ├── llms/ # LLM接口 63 │ ├── llms/ # LLM接口
63 │ ├── tools/ # 搜索工具 64 │ ├── tools/ # 搜索工具
  65 +│ ├── utils/ # 工具函数
64 │ └── ... # 其他模块 66 │ └── ... # 其他模块
65 ├── InsightEngine/ # 私有数据库挖掘Agent 67 ├── InsightEngine/ # 私有数据库挖掘Agent
66 │ ├── agent.py # Agent主逻辑 68 │ ├── agent.py # Agent主逻辑
@@ -70,14 +72,14 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -70,14 +72,14 @@ Weibo_PublicOpinion_AnalysisSystem/
70 │ │ ├── openai_llm.py # OpenAI格式API 72 │ │ ├── openai_llm.py # OpenAI格式API
71 │ │ └── base.py # LLM基类 73 │ │ └── base.py # LLM基类
72 │ ├── nodes/ # 处理节点 74 │ ├── nodes/ # 处理节点
73 -│ │ ├── first_search_node.py # 首次搜索节点  
74 -│ │ ├── reflection_node.py # 反思节点  
75 -│ │ ├── summary_nodes.py # 总结节点 75 +│ │ ├── base_node.py # 基础节点类
  76 +│ │ ├── formatting_node.py # 格式化节点
  77 +│ │ ├── report_structure_node.py # 报告结构节点
76 │ │ ├── search_node.py # 搜索节点 78 │ │ ├── search_node.py # 搜索节点
77 -│ │ ├── sentiment_node.py # 情感分析节点  
78 -│ │ └── insight_node.py # 洞察生成节点 79 +│ │ └── summary_node.py # 总结节点
79 │ ├── tools/ # 数据库查询和分析工具 80 │ ├── tools/ # 数据库查询和分析工具
80 -│ │ ├── media_crawler_db.py # 数据库查询工具 81 +│ │ ├── keyword_optimizer.py # Qwen关键词优化中间件
  82 +│ │ ├── search.py # 数据库操作工具集
81 │ │ └── sentiment_analyzer.py # 情感分析集成工具 83 │ │ └── sentiment_analyzer.py # 情感分析集成工具
82 │ ├── state/ # 状态管理 84 │ ├── state/ # 状态管理
83 │ │ ├── __init__.py 85 │ │ ├── __init__.py
@@ -88,7 +90,7 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -88,7 +90,7 @@ Weibo_PublicOpinion_AnalysisSystem/
88 │ └── utils/ # 工具函数 90 │ └── utils/ # 工具函数
89 │ ├── __init__.py 91 │ ├── __init__.py
90 │ ├── config.py # 配置管理 92 │ ├── config.py # 配置管理
91 -│ └── helpers.py # 辅助函数 93 +│ └── text_processing.py # 文本处理工具
92 ├── ReportEngine/ # 多轮报告生成Agent 94 ├── ReportEngine/ # 多轮报告生成Agent
93 │ ├── agent.py # Agent主逻辑 95 │ ├── agent.py # Agent主逻辑
94 │ ├── llms/ # LLM接口 96 │ ├── llms/ # LLM接口
@@ -105,14 +107,21 @@ Weibo_PublicOpinion_AnalysisSystem/ @@ -105,14 +107,21 @@ Weibo_PublicOpinion_AnalysisSystem/
105 │ └── monitor.py # 日志监控和论坛管理 107 │ └── monitor.py # 日志监控和论坛管理
106 ├── MindSpider/ # 微博爬虫系统 108 ├── MindSpider/ # 微博爬虫系统
107 │ ├── main.py # 爬虫主程序 109 │ ├── main.py # 爬虫主程序
  110 +│ ├── config.py # 爬虫配置文件
108 │ ├── BroadTopicExtraction/ # 话题提取模块 111 │ ├── BroadTopicExtraction/ # 话题提取模块
  112 +│ │ ├── database_manager.py # 数据库管理器
109 │ │ ├── get_today_news.py # 今日新闻获取 113 │ │ ├── get_today_news.py # 今日新闻获取
  114 +│ │ ├── main.py # 话题提取主程序
110 │ │ └── topic_extractor.py # 话题提取器 115 │ │ └── topic_extractor.py # 话题提取器
111 │ ├── DeepSentimentCrawling/ # 深度舆情爬取 116 │ ├── DeepSentimentCrawling/ # 深度舆情爬取
  117 +│ │ ├── keyword_manager.py # 关键词管理器
  118 +│ │ ├── main.py # 深度爬取主程序
112 │ │ ├── MediaCrawler/ # 媒体爬虫核心 119 │ │ ├── MediaCrawler/ # 媒体爬虫核心
113 │ │ └── platform_crawler.py # 平台爬虫管理 120 │ │ └── platform_crawler.py # 平台爬虫管理
114 │ └── schema/ # 数据库结构 121 │ └── schema/ # 数据库结构
115 -│ └── init_database.py # 数据库初始化 122 +│ ├── db_manager.py # 数据库管理器
  123 +│ ├── init_database.py # 数据库初始化
  124 +│ └── mindspider_tables.sql # 数据库表结构
116 ├── SentimentAnalysisModel/ # 情感分析模型集合 125 ├── SentimentAnalysisModel/ # 情感分析模型集合
117 │ ├── WeiboSentiment_Finetuned/ # 微调BERT/GPT-2模型 126 │ ├── WeiboSentiment_Finetuned/ # 微调BERT/GPT-2模型
118 │ ├── WeiboMultilingualSentiment/# 多语言情感分析(推荐) 127 │ ├── WeiboMultilingualSentiment/# 多语言情感分析(推荐)