docs: add tag derive flow diagram to README

This commit is contained in:
2026-01-30 18:40:46 +08:00
parent 2882852cd2
commit 1697372b46
3 changed files with 11 additions and 0 deletions

BIN
1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@@ -10,6 +10,17 @@
- **统一配置管理**:支持环境变量配置,灵活部署
- **完整日志系统**:文件 + 控制台双输出,便于问题排查
## 标签衍生流程
![标签衍生流程图](docs/tag_derive_flow.png)
**流程说明:**
1. 遍历 `ai_image_tags` 表中每一条图片记录
2.`tag_id` 查询 `ai_tags` 表,检查该标签是否为衍生标签
3. 如果不是衍生标签,调用千问大模型生成衍生标签
4. 将新标签插入 `ai_tags` 表(标记为衍生标签)
5. 更新 `ai_image_tags` 表中的 `tag_id``tag_name`
## 项目结构
```

BIN
docs/tag_derive_flow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB