mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 10:18:00 +00:00
Derive the shown data source selection from the preselection
This commit is contained in:
1 file changed
+6
-2
@@ -216,8 +216,12 @@ public partial class DataSourceSelection : MSGComponentBase
|
|||||||
this.waitingForDataSources = true;
|
this.waitingForDataSources = true;
|
||||||
this.StateHasChanged();
|
this.StateHasChanged();
|
||||||
|
|
||||||
// Load the data sources:
|
//
|
||||||
var sources = await this.DataSourceService.GetDataSources(this.LLMProvider, this.DataSourceOptions, this.selectedDataSources);
|
// Load the data sources. We ask with the preselection rather than with the field below:
|
||||||
|
// 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());
|
||||||
if (generation != this.loadAndApplyFiltersGeneration)
|
if (generation != this.loadAndApplyFiltersGeneration)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user