Files
XingHuo/README.md
T

49 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# JinRong · 金融四 Agent 智能管家
四个 Agent(客户财富 / 代理人助手 / 数据分析 / 风控监测)共用统一数据层与合规底座。
## 文档
| 目录 | 内容 |
| --- | --- |
| [docs/memory/MEMORY.md](docs/memory/MEMORY.md) | 项目记忆入口(**新 Agent 读 §0 交接清单**) |
| [docs/PRD/](docs/PRD/) | 风控监测 Agent PRD(v1.1)+ 风控规则表 |
| [docs/项目框架设计/](docs/项目框架设计/) | 表设计、技术选型、JWT 手册、开发计划、实现方案 |
| [交接文档.md](交接文档.md) | 最新进度速览(本地保留,不入库) |
## 后端结构
```text
app/
├── api/ # 路由:chat、risk、simulate、knowledge、admin + audit_middleware、deps
├── service/ # Agent 编排、风控服务(risk/*)、RAG、记忆、鉴权、输入防护
├── tool/ # Core 只读 Tool、知识库 kb_tools、解析/Embedding/Milvus
├── gateway/ # 模拟交易网关(唯一可写 core_trade)
├── model/ # Pydantic + ORM
├── repository/ # core_ro(Core 只读)、risk_repository、session_repository
├── config/ # settings、database
├── utils/
└── main.py
```
## 环境要求
- Python 3.13+(pytest 依赖装在系统 Python)、MySQL 8.0、Redis 8、Neo4j Desktop、Ollama(bge-m3)
- Windows 原生部署(见技术选型文档)
## 快速启动
```bash
cp .env.example .env
pip install -r requirements.txt
# 首次:灌 Core 模拟库与同步 — 见 docs/memory/FLOW.md §0
uvicorn app.main:app --reload
python -m pytest # 406 用例
```
健康检查:`GET http://127.0.0.1:8000/health`
## 前端
React 19 + Vite 7 + Ant Design 5(待 init `web/` 目录)。