整理项目记忆与Agent RAG入口

迁移项目共享记忆到 docs/project-memory,保留 .hermes 仅作为工具目录

新增 Agent 本地 RAG 索引与上下文包检索脚本

记录 RAG 依赖只安装到 .rag/runtime 并加入忽略规则

同步文档与检查脚本中的项目记忆路径
This commit is contained in:
2026-06-16 16:06:54 +08:00
parent a51e63415f
commit 15a527d7f4
29 changed files with 738 additions and 97 deletions

View File

@@ -0,0 +1,46 @@
{
"runtimeDir": ".rag/runtime",
"databaseDir": ".rag/lancedb",
"modelCacheDir": ".rag/models",
"tableName": "project_docs",
"model": "Xenova/multilingual-e5-small",
"chunk": {
"maxChars": 1600,
"overlapChars": 220
},
"sources": [
{
"path": "AGENTS.md",
"weight": 1.4
},
{
"path": "CONTEXT.md",
"weight": 1.3,
"optional": true
},
{
"path": "docs/project-memory",
"weight": 1.35
},
{
"path": "docs",
"weight": 1.0
}
],
"exclude": [
".git/",
".rag/",
".hermes/",
".codegraph/",
".app/",
"node_modules/",
"dist/",
"build/",
"coverage/",
"logs/",
"output/",
"server-rs/target/",
"server-rs/target-",
"tmp/"
]
}