@@ -21,6 +21,8 @@ export class CodeIndexConfigManager {
2121 private mistralOptions ?: { apiKey : string }
2222 private qdrantUrl ?: string = "http://localhost:6333"
2323 private qdrantApiKey ?: string
24+ private searchProvider ?: string
25+ private valkeyUrl ?: string = "http://localhost:6379"
2426 private searchMinScore ?: number
2527 private searchMaxResults ?: number
2628
@@ -45,6 +47,7 @@ export class CodeIndexConfigManager {
4547 const codebaseIndexConfig = this . contextProxy ?. getGlobalState ( "codebaseIndexConfig" ) ?? {
4648 codebaseIndexEnabled : true ,
4749 codebaseIndexQdrantUrl : "http://localhost:6333" ,
50+ codebaseIndexValkeyUrl : "http://localhost:6379" ,
4851 codebaseIndexEmbedderProvider : "openai" ,
4952 codebaseIndexEmbedderBaseUrl : "" ,
5053 codebaseIndexEmbedderModelId : "" ,
@@ -55,11 +58,13 @@ export class CodeIndexConfigManager {
5558 const {
5659 codebaseIndexEnabled,
5760 codebaseIndexQdrantUrl,
61+ codebaseIndexValkeyUrl,
5862 codebaseIndexEmbedderProvider,
5963 codebaseIndexEmbedderBaseUrl,
6064 codebaseIndexEmbedderModelId,
6165 codebaseIndexSearchMinScore,
6266 codebaseIndexSearchMaxResults,
67+ searchProvider,
6368 } = codebaseIndexConfig
6469
6570 const openAiKey = this . contextProxy ?. getSecret ( "codeIndexOpenAiKey" ) ?? ""
@@ -74,8 +79,10 @@ export class CodeIndexConfigManager {
7479 this . codebaseIndexEnabled = codebaseIndexEnabled ?? true
7580 this . qdrantUrl = codebaseIndexQdrantUrl
7681 this . qdrantApiKey = qdrantApiKey ?? ""
82+ this . valkeyUrl = codebaseIndexValkeyUrl
7783 this . searchMinScore = codebaseIndexSearchMinScore
7884 this . searchMaxResults = codebaseIndexSearchMaxResults
85+ this . searchProvider = searchProvider
7986
8087 // Validate and set model dimension
8188 const rawDimension = codebaseIndexConfig . codebaseIndexEmbedderModelDimension
@@ -143,6 +150,8 @@ export class CodeIndexConfigManager {
143150 mistralOptions ?: { apiKey : string }
144151 qdrantUrl ?: string
145152 qdrantApiKey ?: string
153+ valkeyUrl ?: string
154+ searchProvider ?: string
146155 searchMinScore ?: number
147156 }
148157 requiresRestart : boolean
@@ -161,6 +170,8 @@ export class CodeIndexConfigManager {
161170 geminiApiKey : this . geminiOptions ?. apiKey ?? "" ,
162171 mistralApiKey : this . mistralOptions ?. apiKey ?? "" ,
163172 qdrantUrl : this . qdrantUrl ?? "" ,
173+ valkeyUrl : this . valkeyUrl ?? "" ,
174+ searchProvider : this . searchProvider ,
164175 qdrantApiKey : this . qdrantApiKey ?? "" ,
165176 }
166177
@@ -186,6 +197,8 @@ export class CodeIndexConfigManager {
186197 mistralOptions : this . mistralOptions ,
187198 qdrantUrl : this . qdrantUrl ,
188199 qdrantApiKey : this . qdrantApiKey ,
200+ valkeyUrl : this . valkeyUrl ,
201+ searchProvider : this . searchProvider ,
189202 searchMinScore : this . currentSearchMinScore ,
190203 } ,
191204 requiresRestart,
@@ -377,6 +390,8 @@ export class CodeIndexConfigManager {
377390 mistralOptions : this . mistralOptions ,
378391 qdrantUrl : this . qdrantUrl ,
379392 qdrantApiKey : this . qdrantApiKey ,
393+ searchProvider : this . searchProvider ,
394+ valkeyUrl : this . valkeyUrl ,
380395 searchMinScore : this . currentSearchMinScore ,
381396 searchMaxResults : this . currentSearchMaxResults ,
382397 }
0 commit comments