Showing
2 changed files
with
58 additions
and
111 deletions
| 1 | <div align="center"> | 1 | <div align="center"> |
| 2 | 2 | ||
| 3 | -<img src="static/image/logo_compressed.png" alt="Weibo Public Opinion Analysis System Logo" width="100%"> | 3 | +<img src="static/image/logo_compressed.png" alt="BettaFish Logo" width="100%"> |
| 4 | 4 | ||
| 5 | <a href="https://trendshift.io/repositories/15286" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15286" alt="666ghj%2FBettaFish | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> | 5 | <a href="https://trendshift.io/repositories/15286" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15286" alt="666ghj%2FBettaFish | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> |
| 6 | 6 | ||
| @@ -8,14 +8,14 @@ | @@ -8,14 +8,14 @@ | ||
| 8 | <a href="https://lioncc.ai/" target="_blank"><img src="./static/image/logo_loincc.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a>  | 8 | <a href="https://lioncc.ai/" target="_blank"><img src="./static/image/logo_loincc.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a>  |
| 9 | <a href="https://share.302.ai/P66Qe3" target="_blank"><img src="./static/image/logo_302ai.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a> | 9 | <a href="https://share.302.ai/P66Qe3" target="_blank"><img src="./static/image/logo_302ai.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a> |
| 10 | 10 | ||
| 11 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/stargazers) | ||
| 12 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/watchers) | ||
| 13 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/network) | ||
| 14 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/issues) | ||
| 15 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/pulls) | 11 | +[](https://github.com/666ghj/BettaFish/stargazers) |
| 12 | +[](https://github.com/666ghj/BettaFish/watchers) | ||
| 13 | +[](https://github.com/666ghj/BettaFish/network) | ||
| 14 | +[](https://github.com/666ghj/BettaFish/issues) | ||
| 15 | +[](https://github.com/666ghj/BettaFish/pulls) | ||
| 16 | 16 | ||
| 17 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/blob/main/LICENSE) | ||
| 18 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem) | 17 | +[](https://github.com/666ghj/BettaFish/blob/main/LICENSE) |
| 18 | +[](https://github.com/666ghj/BettaFish) | ||
| 19 | [](https://hub.docker.com/) | 19 | [](https://hub.docker.com/) |
| 20 | 20 | ||
| 21 | 21 | ||
| @@ -113,7 +113,7 @@ Solomon LionCC BettaFish WeiYu Benefits: Open codecodex.ai Lion Programming Chan | @@ -113,7 +113,7 @@ Solomon LionCC BettaFish WeiYu Benefits: Open codecodex.ai Lion Programming Chan | ||
| 113 | ### Project Code Structure Tree | 113 | ### Project Code Structure Tree |
| 114 | 114 | ||
| 115 | ``` | 115 | ``` |
| 116 | -Weibo_PublicOpinion_AnalysisSystem/ | 116 | +BettaFish/ |
| 117 | ├── QueryEngine/ # Domestic and international news breadth search Agent | 117 | ├── QueryEngine/ # Domestic and international news breadth search Agent |
| 118 | │ ├── agent.py # Agent main logic | 118 | │ ├── agent.py # Agent main logic |
| 119 | │ ├── llms/ # LLM interface wrapper | 119 | │ ├── llms/ # LLM interface wrapper |
| @@ -205,7 +205,7 @@ Weibo_PublicOpinion_AnalysisSystem/ | @@ -205,7 +205,7 @@ Weibo_PublicOpinion_AnalysisSystem/ | ||
| 205 | └── requirements.txt # Python dependency list | 205 | └── requirements.txt # Python dependency list |
| 206 | ``` | 206 | ``` |
| 207 | 207 | ||
| 208 | -## 🚀 Quick Start | 208 | +## 🚀 Quick Start (Docker) |
| 209 | 209 | ||
| 210 | ### 1. Starting the Project | 210 | ### 1. Starting the Project |
| 211 | 211 | ||
| @@ -215,15 +215,13 @@ Weibo_PublicOpinion_AnalysisSystem/ | @@ -215,15 +215,13 @@ Weibo_PublicOpinion_AnalysisSystem/ | ||
| 215 | docker compose up -d | 215 | docker compose up -d |
| 216 | ``` | 216 | ``` |
| 217 | 217 | ||
| 218 | -> **⚠️ Note: Slow Image Pull** | ||
| 219 | - | ||
| 220 | -> In the original `docker-compose.yml` file, we have provided alternative (mirror) image addresses as **comments** for you to replace with. | 218 | +> **Note: Slow image pull speed.** In the original `docker-compose.yml` file, we have provided alternative mirror image addresses as **comments** for you to replace with. |
| 221 | 219 | ||
| 222 | ### 2. Configuration Instructions | 220 | ### 2. Configuration Instructions |
| 223 | 221 | ||
| 224 | -#### Database Configuration | 222 | +#### Database Configuration (PostgreSQL) |
| 225 | 223 | ||
| 226 | -Please configure the database connection information with the following parameters: | 224 | +Configure the database connection information with the following parameters. The system also supports MySQL, so you can adjust the settings as needed: |
| 227 | 225 | ||
| 228 | | Configuration Item | Value to Use | Description | | 226 | | Configuration Item | Value to Use | Description | |
| 229 | | :--- | :--- | :--- | | 227 | | :--- | :--- | :--- | |
| @@ -236,10 +234,11 @@ Please configure the database connection information with the following paramete | @@ -236,10 +234,11 @@ Please configure the database connection information with the following paramete | ||
| 236 | 234 | ||
| 237 | ### Large Language Model (LLM) Configuration | 235 | ### Large Language Model (LLM) Configuration |
| 238 | 236 | ||
| 239 | -After completing the database configuration, please proceed to configure **all Large Language Model related parameters** to ensure the system can connect to your chosen LLM service. | 237 | +All LLM calls use the OpenAI API interface standard. After you finish the database configuration, continue to configure **all LLM-related parameters** so the system can connect to your selected LLM service. |
| 240 | 238 | ||
| 241 | -Upon completing and saving all the configurations above, the system should be ready to run normally. | 239 | +Once you complete and save the configurations above, the system will be ready to run normally. |
| 242 | 240 | ||
| 241 | +------ | ||
| 243 | 242 | ||
| 244 | ## 💻 ⚙️ Source Code Startup Guide | 243 | ## 💻 ⚙️ Source Code Startup Guide |
| 245 | 244 | ||
| @@ -250,7 +249,7 @@ Upon completing and saving all the configurations above, the system should be re | @@ -250,7 +249,7 @@ Upon completing and saving all the configurations above, the system should be re | ||
| 250 | - **Operating System**: Windows, Linux, MacOS | 249 | - **Operating System**: Windows, Linux, MacOS |
| 251 | - **Python Version**: 3.9+ | 250 | - **Python Version**: 3.9+ |
| 252 | - **Conda**: Anaconda or Miniconda | 251 | - **Conda**: Anaconda or Miniconda |
| 253 | -- **Database**: MySQL (optional, you can choose our cloud database service) | 252 | +- **Database**: PostgreSQL (recommended) or MySQL |
| 254 | - **Memory**: 2GB+ recommended | 253 | - **Memory**: 2GB+ recommended |
| 255 | 254 | ||
| 256 | ### 1. Create Environment | 255 | ### 1. Create Environment |
| @@ -288,13 +287,11 @@ uv pip install -r requirements.txt | @@ -288,13 +287,11 @@ uv pip install -r requirements.txt | ||
| 288 | playwright install chromium | 287 | playwright install chromium |
| 289 | ``` | 288 | ``` |
| 290 | 289 | ||
| 291 | -### 4. System Configuration | ||
| 292 | - | ||
| 293 | -#### 4.1 Configure API Keys | 290 | +### 4. Configure LLM and Database |
| 294 | 291 | ||
| 295 | -Copy the `.env.example` file in the project root directory to `.env` | 292 | +Copy the `.env.example` file in the project root directory and rename it to `.env`. |
| 296 | 293 | ||
| 297 | -Edit the `.env` file and fill in your API keys (you can also choose your own models and search proxies; see the `.env.example` file in the project root directory or the `config.py` file for details): | 294 | +Edit the `.env` file and fill in your API keys (you can also choose your own models and search proxies; see `.env.example` in the project root directory or `config.py` for details): |
| 298 | 295 | ||
| 299 | ```yml | 296 | ```yml |
| 300 | # ====================== Database Configuration ====================== | 297 | # ====================== Database Configuration ====================== |
| @@ -310,8 +307,9 @@ DB_PASSWORD=your_db_password | @@ -310,8 +307,9 @@ DB_PASSWORD=your_db_password | ||
| 310 | DB_NAME=your_db_name | 307 | DB_NAME=your_db_name |
| 311 | # Database character set, utf8mb4 is recommended for emoji compatibility | 308 | # Database character set, utf8mb4 is recommended for emoji compatibility |
| 312 | DB_CHARSET=utf8mb4 | 309 | DB_CHARSET=utf8mb4 |
| 313 | -# Database type: mysql or postgresql | 310 | +# Database type: postgresql or mysql |
| 314 | DB_DIALECT=postgresql | 311 | DB_DIALECT=postgresql |
| 312 | +# Database initialization is not required, as it will be checked automatically upon executing app.py | ||
| 315 | 313 | ||
| 316 | # LLM configuration | 314 | # LLM configuration |
| 317 | # You can switch each Engine's LLM provider as long as it follows the OpenAI-compatible request format | 315 | # You can switch each Engine's LLM provider as long as it follows the OpenAI-compatible request format |
| @@ -325,35 +323,7 @@ INSIGHT_ENGINE_MODEL_NAME= | @@ -325,35 +323,7 @@ INSIGHT_ENGINE_MODEL_NAME= | ||
| 325 | # Media Agent | 323 | # Media Agent |
| 326 | ... | 324 | ... |
| 327 | ``` | 325 | ``` |
| 328 | -Recommended LLM API Provider: [Reasoning Era](https://aihubmix.com/?aff=8Ds9) | ||
| 329 | - | ||
| 330 | -#### 4.2 Database Initialization | ||
| 331 | - | ||
| 332 | -**Option 1: Use Local Database** | ||
| 333 | - | ||
| 334 | -> ~~The MindSpider crawler system and the public opinion system are independent of each other, so you need to configure `MindSpider\config.py`. Copy the `config.py.example` file in the `MindSpider` folder and rename it to `config.py`.~~ | ||
| 335 | -> Configuration has been changed to be based on environment variables. Please copy the `.env.example` file in the project root directory to `.env` and fill in all configurations in it. | ||
| 336 | - | ||
| 337 | -```bash | ||
| 338 | -# Local MySQL database initialization | ||
| 339 | -cd MindSpider | ||
| 340 | -# Project initialization | ||
| 341 | -python main.py --setup | ||
| 342 | - | ||
| 343 | -``` | ||
| 344 | - | ||
| 345 | -**Option 2: Use Cloud Database Service (Recommended)** | ||
| 346 | - | ||
| 347 | -We provide convenient cloud database service with 100,000+ daily real public opinion data, currently **free application**! | ||
| 348 | - | ||
| 349 | -- Real public opinion data, updated in real-time | ||
| 350 | -- Multi-dimensional tag classification | ||
| 351 | -- High-availability cloud service | ||
| 352 | -- Professional technical support | ||
| 353 | - | ||
| 354 | -**Contact us to apply for free cloud database access: 📧 670939375@qq.com** | ||
| 355 | - | ||
| 356 | -> To conduct a data compliance review and service upgrade, we are suspending new applications for the cloud database, effective October 1, 2025. | 326 | +Recommended LLM API Provider: [aihubmix](https://aihubmix.com/?aff=8Ds9) |
| 357 | 327 | ||
| 358 | ### 5. Launch System | 328 | ### 5. Launch System |
| 359 | 329 | ||
| @@ -666,9 +636,11 @@ This project is licensed under the [GPL-2.0 License](LICENSE). Please see the LI | @@ -666,9 +636,11 @@ This project is licensed under the [GPL-2.0 License](LICENSE). Please see the LI | ||
| 666 | 636 | ||
| 667 | ### Get Help | 637 | ### Get Help |
| 668 | 638 | ||
| 669 | -- **Project Homepage**: [GitHub Repository](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem) | ||
| 670 | -- **Issue Reporting**: [Issues Page](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/issues) | ||
| 671 | -- **Feature Requests**: [Discussions Page](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/discussions) | 639 | + FAQ: https://github.com/666ghj/BettaFish/issues/185 |
| 640 | + | ||
| 641 | +- **Project Homepage**: [GitHub Repository](https://github.com/666ghj/BettaFish) | ||
| 642 | +- **Issue Reporting**: [Issues Page](https://github.com/666ghj/BettaFish/issues) | ||
| 643 | +- **Feature Requests**: [Discussions Page](https://github.com/666ghj/BettaFish/discussions) | ||
| 672 | 644 | ||
| 673 | ### Contact Information | 645 | ### Contact Information |
| 674 | 646 | ||
| @@ -685,7 +657,7 @@ This project is licensed under the [GPL-2.0 License](LICENSE). Please see the LI | @@ -685,7 +657,7 @@ This project is licensed under the [GPL-2.0 License](LICENSE). Please see the LI | ||
| 685 | 657 | ||
| 686 | Thanks to these excellent contributors: | 658 | Thanks to these excellent contributors: |
| 687 | 659 | ||
| 688 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/graphs/contributors) | 660 | +[](https://github.com/666ghj/BettaFish/graphs/contributors) |
| 689 | 661 | ||
| 690 | ## 📈 Project Statistics | 662 | ## 📈 Project Statistics |
| 691 | 663 |
| 1 | <div align="center"> | 1 | <div align="center"> |
| 2 | 2 | ||
| 3 | -<img src="static/image/logo_compressed.png" alt="Weibo Public Opinion Analysis System Logo" width="100%"> | 3 | +<img src="static/image/logo_compressed.png" alt="BettaFish Logo" width="100%"> |
| 4 | 4 | ||
| 5 | <a href="https://trendshift.io/repositories/15286" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15286" alt="666ghj%2FBettaFish | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> | 5 | <a href="https://trendshift.io/repositories/15286" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15286" alt="666ghj%2FBettaFish | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> |
| 6 | 6 | ||
| @@ -8,14 +8,14 @@ | @@ -8,14 +8,14 @@ | ||
| 8 | <a href="https://lioncc.ai/" target="_blank"><img src="./static/image/logo_loincc.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a>  | 8 | <a href="https://lioncc.ai/" target="_blank"><img src="./static/image/logo_loincc.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a>  |
| 9 | <a href="https://share.302.ai/P66Qe3" target="_blank"><img src="./static/image/logo_302ai.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a> | 9 | <a href="https://share.302.ai/P66Qe3" target="_blank"><img src="./static/image/logo_302ai.png" alt="666ghj%2FBettaFish | Trendshift" height="40"/></a> |
| 10 | 10 | ||
| 11 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/stargazers) | ||
| 12 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/watchers) | ||
| 13 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/network) | ||
| 14 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/issues) | ||
| 15 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/pulls) | 11 | +[](https://github.com/666ghj/BettaFish/stargazers) |
| 12 | +[](https://github.com/666ghj/BettaFish/watchers) | ||
| 13 | +[](https://github.com/666ghj/BettaFish/network) | ||
| 14 | +[](https://github.com/666ghj/BettaFish/issues) | ||
| 15 | +[](https://github.com/666ghj/BettaFish/pulls) | ||
| 16 | 16 | ||
| 17 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/blob/main/LICENSE) | ||
| 18 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem) | 17 | +[](https://github.com/666ghj/BettaFish/blob/main/LICENSE) |
| 18 | +[](https://github.com/666ghj/BettaFish) | ||
| 19 | [](https://hub.docker.com/) | 19 | [](https://hub.docker.com/) |
| 20 | 20 | ||
| 21 | 21 | ||
| @@ -113,7 +113,7 @@ LLM模型API赞助:<a href="https://aihubmix.com/?aff=8Ds9" target="_blank"><i | @@ -113,7 +113,7 @@ LLM模型API赞助:<a href="https://aihubmix.com/?aff=8Ds9" target="_blank"><i | ||
| 113 | ### 项目代码结构树 | 113 | ### 项目代码结构树 |
| 114 | 114 | ||
| 115 | ``` | 115 | ``` |
| 116 | -Weibo_PublicOpinion_AnalysisSystem/ | 116 | +BettaFish/ |
| 117 | ├── QueryEngine/ # 国内外新闻广度搜索Agent | 117 | ├── QueryEngine/ # 国内外新闻广度搜索Agent |
| 118 | │ ├── agent.py # Agent主逻辑 | 118 | │ ├── agent.py # Agent主逻辑 |
| 119 | │ ├── llms/ # LLM接口封装 | 119 | │ ├── llms/ # LLM接口封装 |
| @@ -205,7 +205,7 @@ Weibo_PublicOpinion_AnalysisSystem/ | @@ -205,7 +205,7 @@ Weibo_PublicOpinion_AnalysisSystem/ | ||
| 205 | └── requirements.txt # Python依赖包清单 | 205 | └── requirements.txt # Python依赖包清单 |
| 206 | ``` | 206 | ``` |
| 207 | 207 | ||
| 208 | -## 🚀 快速开始(docker) | 208 | +## 🚀 快速开始(Docker) |
| 209 | 209 | ||
| 210 | ### 1. 启动项目 | 210 | ### 1. 启动项目 |
| 211 | 211 | ||
| @@ -215,15 +215,13 @@ Weibo_PublicOpinion_AnalysisSystem/ | @@ -215,15 +215,13 @@ Weibo_PublicOpinion_AnalysisSystem/ | ||
| 215 | docker compose up -d | 215 | docker compose up -d |
| 216 | ``` | 216 | ``` |
| 217 | 217 | ||
| 218 | -> **⚠️ 注意:镜像拉取速度慢** | ||
| 219 | - | ||
| 220 | -> 在原 `docker-compose.yml` 文件中,我们已经通过**注释**的方式提供了备用镜像地址供您替换。 | 218 | +> **注:镜像拉取速度慢**,在原 `docker-compose.yml` 文件中,我们已经通过**注释**的方式提供了备用镜像地址供您替换 |
| 221 | 219 | ||
| 222 | ### 2. 配置说明 | 220 | ### 2. 配置说明 |
| 223 | 221 | ||
| 224 | -#### 数据库配置 (Database Configuration) | 222 | +#### 数据库配置(PostgreSQL) |
| 225 | 223 | ||
| 226 | -请按照以下参数配置数据库连接信息: | 224 | +请按照以下参数配置数据库连接信息,也支持Mysql可自行修改: |
| 227 | 225 | ||
| 228 | | 配置项 | 填写值 | 说明 | | 226 | | 配置项 | 填写值 | 说明 | |
| 229 | | :--- | :--- | :--- | | 227 | | :--- | :--- | :--- | |
| @@ -236,13 +234,15 @@ docker compose up -d | @@ -236,13 +234,15 @@ docker compose up -d | ||
| 236 | 234 | ||
| 237 | #### 大模型配置 | 235 | #### 大模型配置 |
| 238 | 236 | ||
| 237 | +> 我们所有 LLM 调用使用 OpenAI 的 API 接口标准 | ||
| 238 | + | ||
| 239 | 在完成数据库配置后,请正常配置**所有大模型相关的参数**,确保系统能够连接到您选择的大模型服务。 | 239 | 在完成数据库配置后,请正常配置**所有大模型相关的参数**,确保系统能够连接到您选择的大模型服务。 |
| 240 | 240 | ||
| 241 | 完成上述所有配置并保存后,系统即可正常运行。 | 241 | 完成上述所有配置并保存后,系统即可正常运行。 |
| 242 | 242 | ||
| 243 | ------ | 243 | ------ |
| 244 | 244 | ||
| 245 | -## 💻 🔧 源码启动指南 | 245 | +## 🔧 源码启动指南 |
| 246 | 246 | ||
| 247 | > 如果你是初次学习一个Agent系统的搭建,可以从一个非常简单的demo开始:[Deep Search Agent Demo](https://github.com/666ghj/DeepSearchAgent-Demo) | 247 | > 如果你是初次学习一个Agent系统的搭建,可以从一个非常简单的demo开始:[Deep Search Agent Demo](https://github.com/666ghj/DeepSearchAgent-Demo) |
| 248 | 248 | ||
| @@ -251,7 +251,7 @@ docker compose up -d | @@ -251,7 +251,7 @@ docker compose up -d | ||
| 251 | - **操作系统**: Windows、Linux、MacOS | 251 | - **操作系统**: Windows、Linux、MacOS |
| 252 | - **Python版本**: 3.9+ | 252 | - **Python版本**: 3.9+ |
| 253 | - **Conda**: Anaconda或Miniconda | 253 | - **Conda**: Anaconda或Miniconda |
| 254 | -- **数据库**: MySQL(可选择我们的云数据库服务) | 254 | +- **数据库**: PostgreSQL(推荐)或MySQL |
| 255 | - **内存**: 建议2GB以上 | 255 | - **内存**: 建议2GB以上 |
| 256 | 256 | ||
| 257 | ### 1. 创建环境 | 257 | ### 1. 创建环境 |
| @@ -289,11 +289,9 @@ uv pip install -r requirements.txt | @@ -289,11 +289,9 @@ uv pip install -r requirements.txt | ||
| 289 | playwright install chromium | 289 | playwright install chromium |
| 290 | ``` | 290 | ``` |
| 291 | 291 | ||
| 292 | -### 4. 配置系统 | ||
| 293 | - | ||
| 294 | -#### 4.1 配置API密钥 | 292 | +### 4. 配置LLM与数据库 |
| 295 | 293 | ||
| 296 | -复制一份 项目根目录 `.env.example` 文件,命名为 `.env` | 294 | +复制一份项目根目录 `.env.example` 文件,命名为 `.env` |
| 297 | 295 | ||
| 298 | 编辑 `.env` 文件,填入您的API密钥(您也可以选择自己的模型、搜索代理,详情见根目录.env.example文件内或根目录config.py中的说明): | 296 | 编辑 `.env` 文件,填入您的API密钥(您也可以选择自己的模型、搜索代理,详情见根目录.env.example文件内或根目录config.py中的说明): |
| 299 | 297 | ||
| @@ -311,10 +309,11 @@ DB_PASSWORD=your_db_password | @@ -311,10 +309,11 @@ DB_PASSWORD=your_db_password | ||
| 311 | DB_NAME=your_db_name | 309 | DB_NAME=your_db_name |
| 312 | # 数据库字符集,推荐utf8mb4,兼容emoji | 310 | # 数据库字符集,推荐utf8mb4,兼容emoji |
| 313 | DB_CHARSET=utf8mb4 | 311 | DB_CHARSET=utf8mb4 |
| 314 | -# 数据库类型mysql或postgresql | 312 | +# 数据库类型postgresql或mysql |
| 315 | DB_DIALECT=postgresql | 313 | DB_DIALECT=postgresql |
| 314 | +# 数据库不需要初始化,执行app.py时会自动检测 | ||
| 316 | 315 | ||
| 317 | -# LLM配置 | 316 | +# ====================== LLM配置 ====================== |
| 318 | # 您可以更改每个部分LLM使用的API,只要兼容OpenAI请求格式都可以 | 317 | # 您可以更改每个部分LLM使用的API,只要兼容OpenAI请求格式都可以 |
| 319 | 318 | ||
| 320 | # Insight Agent | 319 | # Insight Agent |
| @@ -323,38 +322,12 @@ INSIGHT_ENGINE_API_KEY= | @@ -323,38 +322,12 @@ INSIGHT_ENGINE_API_KEY= | ||
| 323 | INSIGHT_ENGINE_BASE_URL= | 322 | INSIGHT_ENGINE_BASE_URL= |
| 324 | # Insight Agent LLM模型名称,如kimi-k2-0711-preview | 323 | # Insight Agent LLM模型名称,如kimi-k2-0711-preview |
| 325 | INSIGHT_ENGINE_MODEL_NAME= | 324 | INSIGHT_ENGINE_MODEL_NAME= |
| 325 | + | ||
| 326 | # Media Agent | 326 | # Media Agent |
| 327 | ... | 327 | ... |
| 328 | ``` | 328 | ``` |
| 329 | 推荐LLM API供应商:[推理时代](https://aihubmix.com/?aff=8Ds9) | 329 | 推荐LLM API供应商:[推理时代](https://aihubmix.com/?aff=8Ds9) |
| 330 | 330 | ||
| 331 | -#### 4.2 数据库初始化 | ||
| 332 | - | ||
| 333 | -**选择1:使用本地数据库** | ||
| 334 | - | ||
| 335 | -> ~~MindSpider爬虫系统跟舆情系统是各自独立的,所以需要再去`MindSpider\config.py`配置一下,复制`MindSpider`文件夹下的 `config.py.example` 文件,命名为 `config.py`~~ | ||
| 336 | -现版本已更改为基于环境变量配置,请复制项目根目录.env.example文件为.env文件,并在其中填写各项配置 | ||
| 337 | -```bash | ||
| 338 | -# 本地MySQL数据库初始化 | ||
| 339 | -cd MindSpider | ||
| 340 | -# 项目初始化 | ||
| 341 | -python main.py --setup | ||
| 342 | - | ||
| 343 | -``` | ||
| 344 | - | ||
| 345 | -**选择2:使用云数据库服务(推荐)** | ||
| 346 | - | ||
| 347 | -我们提供便捷的云数据库服务,包含日均10万+真实舆情数据,目前**免费申请**! | ||
| 348 | - | ||
| 349 | -- 真实舆情数据,实时更新 | ||
| 350 | -- 多维度标签分类 | ||
| 351 | -- 高可用云端服务 | ||
| 352 | -- 专业技术支持 | ||
| 353 | - | ||
| 354 | -**联系我们申请免费云数据库访问:📧 670939375@qq.com** | ||
| 355 | - | ||
| 356 | -> 为进行数据合规性审查与服务升级,云数据库自2025年10月1日起暂停接收新的使用申请 | ||
| 357 | - | ||
| 358 | ### 5. 启动系统 | 331 | ### 5. 启动系统 |
| 359 | 332 | ||
| 360 | #### 5.1 完整系统启动(推荐) | 333 | #### 5.1 完整系统启动(推荐) |
| @@ -664,9 +637,11 @@ class DeepSearchAgent: | @@ -664,9 +637,11 @@ class DeepSearchAgent: | ||
| 664 | 637 | ||
| 665 | ### 获取帮助 | 638 | ### 获取帮助 |
| 666 | 639 | ||
| 667 | -- **项目主页**:[GitHub仓库](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem) | ||
| 668 | -- **问题反馈**:[Issues页面](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/issues) | ||
| 669 | -- **功能建议**:[Discussions页面](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/discussions) | 640 | +常见问题解答:https://github.com/666ghj/BettaFish/issues/185 |
| 641 | + | ||
| 642 | +- **项目主页**:[GitHub仓库](https://github.com/666ghj/BettaFish) | ||
| 643 | +- **问题反馈**:[Issues页面](https://github.com/666ghj/BettaFish/issues) | ||
| 644 | +- **功能建议**:[Discussions页面](https://github.com/666ghj/BettaFish/discussions) | ||
| 670 | 645 | ||
| 671 | ### 联系方式 | 646 | ### 联系方式 |
| 672 | 647 | ||
| @@ -683,7 +658,7 @@ class DeepSearchAgent: | @@ -683,7 +658,7 @@ class DeepSearchAgent: | ||
| 683 | 658 | ||
| 684 | 感谢以下优秀的贡献者们: | 659 | 感谢以下优秀的贡献者们: |
| 685 | 660 | ||
| 686 | -[](https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem/graphs/contributors) | 661 | +[](https://github.com/666ghj/BettaFish/graphs/contributors) |
| 687 | 662 | ||
| 688 | ## 📈 项目统计 | 663 | ## 📈 项目统计 |
| 689 | 664 |
-
Please register or login to post a comment