feat: add portable KB snapshot for environments without old bridge
This commit is contained in:
+7
-3
@@ -54,11 +54,15 @@ node scripts/setup-defaults.js
|
||||
# Twenty:创建初始 workspace + 在库内生成 API key(不走 UI)
|
||||
node scripts/twenty-bootstrap.js
|
||||
|
||||
# 重建 KB parent-child 索引(旧 bridge indexer + 回填 text_tsv,自动备份)
|
||||
# 有旧 bridge 时:重建 KB parent-child 索引(自动备份)
|
||||
bash scripts/rebuild-kb-index.sh
|
||||
|
||||
# 升级旧 kb_docs 支持 Hybrid RAG(text_tsv/parent_id/chunk_type)
|
||||
node scripts/upgrade-kb-schema.js
|
||||
# 没有旧 bridge 时:直接导入 KB 快照(测试/生产常用)
|
||||
bash scripts/import-kb-snapshot.sh
|
||||
# 或指定目标库:TARGET_PG_DB=products bash scripts/import-kb-snapshot.sh
|
||||
|
||||
# 从当前环境重新生成快照(可选)
|
||||
bash scripts/export-kb-snapshot.sh
|
||||
|
||||
# 全量商品页站点地图(官网 sitemap → bridge 库)
|
||||
node scripts/build-site-map.js www us
|
||||
|
||||
Reference in New Issue
Block a user