# decision_support_system **Repository Path**: AllenMaa/decision_support_system ## Basic Information - **Project Name**: decision_support_system - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-29 - **Last Updated**: 2025-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 辅助决策系统 (Decision Support System) 一个基于AI的智能辅助决策系统,集成了实时数据仪表盘和智能对话功能。 ## 功能特性 - 📊 **实时数据仪表盘** - 展示各种关键指标和数据 - 🤖 **AI智能对话** - 基于大模型的决策建议 - 📈 **数据可视化** - 图表和趋势分析 - ⚙️ **可配置决策逻辑** - 支持自定义提示词和规则 - 🔄 **实时更新** - 自动刷新数据源 ## 技术栈 ### 前端 - React 18 + TypeScript - Ant Design (UI组件库) - Recharts (数据可视化) - Axios (HTTP客户端) ### 后端 - FastAPI (Python Web框架) - SQLAlchemy (ORM) - Redis (缓存) - OpenAI API (AI集成) ## 快速开始 ### 1. 克隆项目 ```bash git clone cd decision-support-system ``` ### 2. 启动后端 ```bash cd backend pip install -r requirements.txt uvicorn main:app --reload ``` ### 3. 启动前端 ```bash cd frontend npm install npm start ``` ### 4. 访问应用 - 前端: http://localhost:3000 - 后端API: http://localhost:8000 - API文档: http://localhost:8000/docs ## 项目结构 ``` decision-support-system/ ├── frontend/ # React前端应用 ├── backend/ # FastAPI后端服务 ├── docs/ # 项目文档 └── README.md # 项目说明 ``` ## 环境变量配置 创建 `.env` 文件并配置以下变量: ```env # OpenAI API OPENAI_API_KEY=your_openai_api_key # 数据库 DATABASE_URL=postgresql://user:password@localhost/dbname # Redis REDIS_URL=redis://localhost:6379 ``` ## 许可证 MIT License