Skip to content

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

:art: 降低自动 OCR 时的并发数

Liang Ding9c08bcd9584f
diff --git a/kernel/model/ocr.go b/kernel/model/ocr.go
index e453182614..ef18d8f349 100644
--- a/kernel/model/ocr.go
+++ b/kernel/model/ocr.go
@@ -34,8 +34,8 @@ func autoOCRAssets() {
assets := getUnOCRAssetsAbsPaths()
if 0 < len(assets) {
poolSize := runtime.NumCPU()
- if 4 < poolSize {
- poolSize = 4
+ if 2 < poolSize {
+ poolSize = 2
}
waitGroup := &sync.WaitGroup{}
p, _ := ants.NewPoolWithFunc(poolSize, func(arg interface{}) {