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
+3 -1
View File
@@ -6,7 +6,7 @@
| 目录 | 内容 |
| --- | --- |
| [docs/memory/MEMORY.md](docs/memory/MEMORY.md) | 项目记忆入口(Agent 先读) |
| [docs/memory/MEMORY.md](docs/memory/MEMORY.md) | 项目记忆入口(**新 Agent 读 §0 交接清单**) |
| [docs/需求拆解/](docs/需求拆解/) | 业务场景、数据矩阵、合规 |
| [docs/项目框架设计/](docs/项目框架设计/) | 表设计、技术选型、JWT 手册 |
@@ -18,6 +18,7 @@ app/
├── service/ # Agent、RAG、记忆
├── tool/ # 解析、Embedding、Milvus
├── model/ # Pydantic + ORM
├── repository/ # Core 只读 core_ro(已实现)
├── config/ # settings、database
├── utils/
└── main.py
@@ -33,6 +34,7 @@ app/
```bash
cp .env.example .env
pip install -r requirements.txt
# 首次:灌 Core 模拟库与同步 — 见 docs/memory/FLOW.md §0
uvicorn app.main:app --reload
```