整理项目记忆与Agent RAG入口
迁移项目共享记忆到 docs/project-memory,保留 .hermes 仅作为工具目录 新增 Agent 本地 RAG 索引与上下文包检索脚本 记录 RAG 依赖只安装到 .rag/runtime 并加入忽略规则 同步文档与检查脚本中的项目记忆路径
This commit is contained in:
46
scripts/rag/rag-config.json
Normal file
46
scripts/rag/rag-config.json
Normal 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/"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user