From e1f2a8cd7be487a3b4284ca70cc5a2a64b50f5d1 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 6 Mar 2026 07:46:15 +0300 Subject: [PATCH] Chore: remove unused RagEnabled var --- config.example.toml | 1 - config/config.go | 1 - docs/config.md | 3 --- props_table.go | 3 --- 4 files changed, 8 deletions(-) diff --git a/config.example.toml b/config.example.toml index f5820da..15c8ca6 100644 --- a/config.example.toml +++ b/config.example.toml @@ -27,7 +27,6 @@ ChunkLimit = 100000 AutoScrollEnabled = true AutoCleanToolCallsFromCtx = false # rag settings -RAGEnabled = false RAGBatchSize = 1 RAGWordLimit = 80 RAGDir = "ragimport" diff --git a/config/config.go b/config/config.go index 84ec480..29d5744 100644 --- a/config/config.go +++ b/config/config.go @@ -40,7 +40,6 @@ type Config struct { EmbedTokenizerPath string `toml:"EmbedTokenizerPath"` EmbedDims int `toml:"EmbedDims"` // rag settings - RAGEnabled bool `toml:"RAGEnabled"` RAGDir string `toml:"RAGDir"` RAGBatchSize int `toml:"RAGBatchSize"` RAGWordLimit uint32 `toml:"RAGWordLimit"` diff --git a/docs/config.md b/docs/config.md index d8b42d6..6f11d73 100644 --- a/docs/config.md +++ b/docs/config.md @@ -71,9 +71,6 @@ This document explains how to set up and configure the application using the `co #### EmbedURL (`"http://localhost:8082/v1/embeddings"`) - The endpoint for embedding API, used for RAG (Retrieval Augmented Generation) functionality. -#### RAGEnabled (`false`) -- Enable or disable RAG functionality for enhanced context retrieval. - #### RAGBatchSize (`1`) - Number of documents to process in each RAG batch. diff --git a/props_table.go b/props_table.go index ec66812..5c3d8d7 100644 --- a/props_table.go +++ b/props_table.go @@ -115,9 +115,6 @@ func makePropsTable(props map[string]float32) *tview.Table { row++ } // Add checkboxes - addCheckboxRow("RAG use", cfg.RAGEnabled, func(checked bool) { - cfg.RAGEnabled = checked - }) addCheckboxRow("Inject role", injectRole, func(checked bool) { injectRole = checked })