feat: add online FAQ/KB sync without old bridge
This commit is contained in:
@@ -61,6 +61,12 @@ bash scripts/rebuild-kb-index.sh
|
||||
bash scripts/import-kb-snapshot.sh
|
||||
# 或指定目标库:TARGET_PG_DB=products bash scripts/import-kb-snapshot.sh
|
||||
|
||||
# 在线 FAQ 同步 + 重建 KB(不依赖旧 bridge)
|
||||
# 宿主机执行时 RAG_PG_URL 用 127.0.0.1:5440/bridge
|
||||
RAG_PG_URL=postgres://crmnew:<password>@127.0.0.1:5440/bridge node scripts/sync-kb-online.js
|
||||
# 仅用本地 bridge/kb 重建
|
||||
node scripts/sync-kb-online.js --local-only --force
|
||||
|
||||
# 从当前环境重新生成快照(可选)
|
||||
bash scripts/export-kb-snapshot.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user