Count the agents only where the classic RAG process runs them

This commit is contained in:
Thorsten Sommer committed 2026-09-24 16:32:01 +02:00
1 parent abb4a41a71
commit a75ffc54a6
6 files changed
+116 -16

No files matched your search

@@ -246,7 +246,7 @@ public partial class DataSourceSelection : MSGComponentBase
// that field holds what was usable the last time we looked, so a source filtered out once
// would never come back, while the RAG process keeps reading it from the preselection.
//
var sources = await this.DataSourceService.GetDataSources(this.LLMProvider, this.DataSourceOptions, this.GetDataSourcesFromConfiguredIds());
var sources = await this.DataSourceService.GetDataSources(this.LLMProvider, this.DataSourceOptions, DataSourceRetrievalMode.EVERY_MESSAGE, this.GetDataSourcesFromConfiguredIds());
if (generation != this.loadAndApplyFiltersGeneration)
return;