Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 调整数据仓库索引推送间隔

Liang Ding8740e47a01be
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index eb5abe53c2..dc1170b304 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1203,7 +1203,7 @@ func subscribeEvents() {
indexUpsertFileCount := 0
eventbus.Subscribe(eventbus.EvtIndexUpsertFile, func(context map[string]interface{}, path string) {
msg := fmt.Sprintf(Conf.Language(160), filepath.Base(path))
- if 0 == indexUpsertFileCount%128 {
+ if 0 == indexUpsertFileCount%64 {
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)
}
@@ -1235,7 +1235,7 @@ func subscribeEvents() {
eventbus.Subscribe(eventbus.EvtCheckoutUpsertFile, func(context map[string]interface{}, path string) {
msg := fmt.Sprintf(Conf.Language(162), filepath.Base(path))
util.IncBootProgress(bootProgressPart, msg)
- if 0 == coUpsertFileCount%128 {
+ if 0 == coUpsertFileCount%64 {
util.ContextPushMsg(context, msg)
}
coUpsertFileCount++