summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-19 19:56:58 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-19 19:56:58 +0300
commit71987d25e9b0f8afeb885e8719fa8fabb7caef3e (patch)
tree1d1cbe9cc98b570dbeb2cf79f938470e297178b0 /config
parent3ae71d81c426d5526827da1df3d930b991d0d62f (diff)
Chore: move rag settings to configHEADmaster
Diffstat (limited to 'config')
-rw-r--r--config/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index f26a82e..63495b5 100644
--- a/config/config.go
+++ b/config/config.go
@@ -26,6 +26,10 @@ type Config struct {
EmbedURL string `toml:"EmbedURL"`
HFToken string `toml:"HFToken"`
RAGDir string `toml:"RAGDir"`
+ // rag settings
+ RAGWorkers uint32 `toml:"RAGWorkers"`
+ RAGBatchSize int `toml:"RAGBatchSize"`
+ RAGWordLimit uint32 `toml:"RAGWordLimit"`
}
func LoadConfigOrDefault(fn string) *Config {
@@ -47,6 +51,10 @@ func LoadConfigOrDefault(fn string) *Config {
config.AssistantRole = "assistant"
config.SysDir = "sysprompts"
config.ChunkLimit = 8192
+ //
+ config.RAGBatchSize = 100
+ config.RAGWordLimit = 80
+ config.RAGWorkers = 5
}
config.CurrentAPI = config.ChatAPI
config.APIMap = map[string]string{