Skip to content

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

:art: Enlarge cache size

Danielaf02b4dbea79
diff --git a/kernel/cache/ial.go b/kernel/cache/ial.go
index 8c7a7152fd..94cc23bfe4 100644
--- a/kernel/cache/ial.go
+++ b/kernel/cache/ial.go
@@ -24,8 +24,8 @@ import (
)
var docIALCache, _ = ristretto.NewCache(&ristretto.Config{
- NumCounters: 10240,
- MaxCost: 1024,
+ NumCounters: 102400,
+ MaxCost: 10240,
BufferItems: 64,
})
@@ -55,8 +55,8 @@ func ClearDocsIAL() {
}
var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{
- NumCounters: 10240,
- MaxCost: 1024,
+ NumCounters: 102400,
+ MaxCost: 10240,
BufferItems: 64,
})
diff --git a/kernel/sql/cache.go b/kernel/sql/cache.go
index cb3f84f2ac..6c106585bf 100644
--- a/kernel/sql/cache.go
+++ b/kernel/sql/cache.go
@@ -38,8 +38,8 @@ func disableCache() {
}
var blockCache, _ = ristretto.NewCache(&ristretto.Config{
- NumCounters: 10240,
- MaxCost: 1024,
+ NumCounters: 102400,
+ MaxCost: 10240,
BufferItems: 64,
})