AGENT.md
4.44 KB
AGENT Memory / 开发续跑记忆
更新:2026-06-02 目的:让新 session 在 1~3 分钟内接上当前开发节奏。
1. 用户长期偏好
- 默认使用中文输出。
- 尽量自主推进,不要频繁停下来询问。
- 每完成一个阶段性 checklist:
- 更新
docs/CHANGELOG.md git commitgit push origin main
- 更新
- Python 固定使用:
/usr/local/miniconda3/bin/python - 文档优先级:图 > 表 > 文字 > 细节附录。
- 文档要浓缩分类,避免同层级文档过多。
- 外部/内部文档链接优先使用相对路径跳转,不要只用反引号包裹地址。
- 严禁误提交大体积数据、训练产物、
/tmp结果、__pycache__。
2. 当前项目主线
这是一个正在工业化的音乐 ACR / 检索项目,主线是:
- 开放数据集接入
- 音频切片策略优化
- 训练 / 建索引 / 评测闭环
- 准确率与混淆鲁棒性提升
- 文档与交接体系完善
3. 当前已完成重点
- 已实现多种切片策略:
randomsilence_awarehigh_energyonset_awarebeat_awarerepeated_section_awarehybrid
- 已实现公平评测控制:
evaluate.py --max-queries --seedsmoke-local --max-test-queriesscripts/ab_smoke_segmentation.py --max-test-queries
- 已补强数据规范、pgvector 指南、FMA/开放数据工作流文档。
4. 当前经验结论
- 小样本真实 FMA smoke 下,多策略都可能接近满分,不能据此定默认策略。
- cap48 规模下结果对 seed 敏感。
- cap64 当前单 seed 下
hybrid更强。 - bucket toy smoke 已完成完整汇总,并出现不同 bucket 的不同 winner。
- 默认策略决策应基于 multi-seed + bucket/style-aware aggregate,而不是单次跑分。
5. 当前续跑优先级
- 将 toy prefix bucket 升级为语义 bucket。
- 通用模板:
acr-engine/configs/buckets/fma_semantic_bucket_template.json - 业务模板:
acr-engine/configs/buckets/business_type_bucket_template.json - 业务说明:
docs/business-music-bucket-and-type-guide.md - Manifest 规范:
docs/business-manifest-and-type-role-spec.md - 导出 cookbook:
docs/business-export-cookbook.md - 规范化脚本:
acr-engine/scripts/normalize_business_export.py - 角色拆分脚本:
acr-engine/scripts/split_business_manifest_ready.py - 项目 manifest 适配:
acr-engine/scripts/build_business_project_manifests.py
- 通用模板:
- 补 cap64 multi-seed aggregate。
- 更新:
docs/open-dataset-workflow.mddocs/session-handoff.mddocs/CHANGELOG.md
- 提交并推送。
- 下一轮再推进:
- 工业级 hard negative / confusion bucket
-
hybrid波动收敛 - 更接近商用的数据集组合评测
5.5 最新真实 FMA / chromaprint 运行态(2026-06-02)
当前最新快照(15:40 UTC)
- 远程同步基线:
9371e94(更新前) - 当前最重要的新证据:fixed real-path 200-ref rerun 已拿到首份显式 evaluate 指标。
- index 路径:
/tmp/fma_realpath_small_rerun_index2 - eval 路径:
/tmp/fma_realpath_small_rerun_eval/eval_top50.json - 当前结果:
num_queries=35top1=0.8571topk=1.0by_type.clean: n=35, top1=0.8571, topk=1.0
- query 数说明:overlap test items
235中,非referencequery 只有35,所以--max-queries 50最终评到35。 - 这说明:当前已具备一条完整可复用的真实路径 smoke 证据链:
chromaprint complete -> reference complete -> evaluate complete - 下一次值得提交的事件:
- 更大 query 数 / 更大 reference 集评测
-
confused/humming_like/ hard negative 指标 - 更接近商用场景的数据组合结果
6. 高风险注意事项
-
git status中通常会有大量:acr-engine/data/raw/...acr-engine/data/external_smoke/...- 模型 checkpoint
__pycache__
- 提交时必须显式
git add目标文档文件,不能使用宽泛全量暂存。
7. 关键文档入口
docs/README.mddocs/open-dataset-workflow.mddocs/dataset-spec.mddocs/training-data-and-pgvector-guide.mddocs/session-handoff.mddocs/CHANGELOG.md
7.5 新 session 最短可跑命令
cd /workspace/acr-engine
/usr/local/miniconda3/bin/python scripts/business_export_offline_smoke.py \
--output-root /tmp/business_export_offline_smoke
预期:
- 业务导出离线链跑通
- 生成项目 manifests
-
train.py --dry-run通过