Add core database support and enhance documentation

- Introduced `MYSQL_CORE_DATABASE` in `.env.example` and `settings.py` for core database configuration.
- Added `CoreReadOnlyRepository` for read-only access to the `jinrong_core` database.
- Updated `AGENTS.md`, `README.md`, and various documentation files to reflect new agent onboarding processes and project structure.
- Revised requirements in `requirements.txt` to include `langgraph` and `langchain-core`.
- Enhanced `FLOW.md` with local bootstrap instructions for setting up the core simulation environment.
- Added new scripts for database creation and seeding for the core simulation library.
- Improved overall documentation for clarity on project architecture and memory management.
- Updated `TODO.md` to reflect current development priorities and tasks.
This commit is contained in:
2026-09-05 17:39:16 +08:00
parent 0374010b37
commit 1ddd44a6cb
34 changed files with 1848 additions and 97 deletions
@@ -10,7 +10,7 @@
| 组件 | 版本 / 状态 | 备注 |
| --- | --- | --- |
| **后端** | Python 3.13.14 + FastAPI | 系统 Python;已装 `langchain` 1.3.18 / `langchain-openai` 1.6.0 / `pymilvus` 3.0.1 |
| **后端** | Python 3.13.14 + FastAPI | 系统 Python;Agent 编排 **LangGraph** 1.2.x + `langchain-core` / `langchain-openai`(DeepSeek)/ `pymilvus` 3.0.1 |
| **关系库** | MySQL 8.0.46 | 原生安装,端口 **3306** ✓ |
| **缓存** | Redis 8.10.1 | 原生安装,路径 `F:\Redis\...`,端口 **6379** ✓ |
| **图库** | Neo4j 5.26.19(Enterprise) | Neo4j Desktop 2,已建库 ✓ |
@@ -106,7 +106,7 @@ Agent 业务库脚本:[01-mysql-共用底座.sql](../项目框架设计/表设
| 能力 | 选型 | 数据出境 |
| --- | --- | --- |
| 对话 / 推理 / Tool 编排 | DeepSeek API | 按 API 协议;敏感字段需脱敏 |
| 对话 / 推理 / Tool 编排 | DeepSeek API + **LangGraph** StateGraph | 按 API 协议;敏感字段需脱敏 |
| 文档 Embedding | Ollama bge-m3 本地 | **不出内网** |
---