mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 07:59:47 +00:00
Improved the data source selection behavior with no data sources selected (#355)
This commit is contained in:
parent
75b3238e56
commit
dad709cccb
@ -69,8 +69,27 @@
|
|||||||
<MudTextSwitch Label="AI-based data validation" Value="@this.aiBasedValidation" LabelOn="Yes, let the AI validate & filter the retrieved data." LabelOff="No, use all data retrieved from the data sources." ValueChanged="@this.ValidationModeChanged"/>
|
<MudTextSwitch Label="AI-based data validation" Value="@this.aiBasedValidation" LabelOn="Yes, let the AI validate & filter the retrieved data." LabelOff="No, use all data retrieved from the data sources." ValueChanged="@this.ValidationModeChanged"/>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (this.aiBasedSourceSelection is false || this.DataSourcesAISelected.Count == 0)
|
@switch (this.aiBasedSourceSelection)
|
||||||
{
|
{
|
||||||
|
case true when this.availableDataSources.Count == 0:
|
||||||
|
<MudText Typo="Typo.body1" Class="mb-3">
|
||||||
|
Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
|
||||||
|
</MudText>
|
||||||
|
break;
|
||||||
|
|
||||||
|
case true when this.DataSourcesAISelected.Count == 0:
|
||||||
|
<MudText Typo="Typo.body1" Class="mb-3">
|
||||||
|
The AI evaluates each of your inputs to determine whether and which data sources are necessary. Currently, the AI has not selected any source.
|
||||||
|
</MudText>
|
||||||
|
break;
|
||||||
|
|
||||||
|
case false when this.availableDataSources.Count == 0:
|
||||||
|
<MudText Typo="Typo.body1" Class="mb-3">
|
||||||
|
Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
|
||||||
|
</MudText>
|
||||||
|
break;
|
||||||
|
|
||||||
|
case false:
|
||||||
<MudField Label="Available Data Sources" Variant="Variant.Outlined" Class="mb-3" Disabled="@this.aiBasedSourceSelection">
|
<MudField Label="Available Data Sources" Variant="Variant.Outlined" Class="mb-3" Disabled="@this.aiBasedSourceSelection">
|
||||||
<MudList T="IDataSource" SelectionMode="@this.GetListSelectionMode()" @bind-SelectedValues:get="@this.selectedDataSources" @bind-SelectedValues:set="@(x => this.SelectionChanged(x))" Style="max-height: 14em;">
|
<MudList T="IDataSource" SelectionMode="@this.GetListSelectionMode()" @bind-SelectedValues:get="@this.selectedDataSources" @bind-SelectedValues:set="@(x => this.SelectionChanged(x))" Style="max-height: 14em;">
|
||||||
@foreach (var source in this.availableDataSources)
|
@foreach (var source in this.availableDataSources)
|
||||||
@ -81,9 +100,9 @@
|
|||||||
}
|
}
|
||||||
</MudList>
|
</MudList>
|
||||||
</MudField>
|
</MudField>
|
||||||
}
|
break;
|
||||||
else
|
|
||||||
{
|
case true:
|
||||||
<MudExpansionPanels MultiExpansion="@false" Class="mt-3" Style="max-height: 14em;">
|
<MudExpansionPanels MultiExpansion="@false" Class="mt-3" Style="max-height: 14em;">
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.TouchApp" HeaderText="Available Data Sources">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.TouchApp" HeaderText="Available Data Sources">
|
||||||
<MudList T="IDataSource" SelectionMode="MudBlazor.SelectionMode.SingleSelection" SelectedValues="@this.selectedDataSources" Style="max-height: 14em;">
|
<MudList T="IDataSource" SelectionMode="MudBlazor.SelectionMode.SingleSelection" SelectedValues="@this.selectedDataSources" Style="max-height: 14em;">
|
||||||
@ -107,7 +126,7 @@
|
|||||||
|
|
||||||
<MudProgressLinear Color="Color.Info" Min="0" Max="1" Value="@source.AIDecision.Confidence"/>
|
<MudProgressLinear Color="Color.Info" Min="0" Max="1" Value="@source.AIDecision.Confidence"/>
|
||||||
<MudJustifiedText Typo="Typo.body2">
|
<MudJustifiedText Typo="Typo.body2">
|
||||||
@this.GetAIReasoning(source)
|
@(this.GetAIReasoning(source))
|
||||||
</MudJustifiedText>
|
</MudJustifiedText>
|
||||||
</ChildContent>
|
</ChildContent>
|
||||||
</MudListItem>
|
</MudListItem>
|
||||||
@ -115,6 +134,7 @@
|
|||||||
</MudList>
|
</MudList>
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
</MudExpansionPanels>
|
</MudExpansionPanels>
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# v0.9.37, build 212 (2025-03-16 xx:xx UTC)
|
# v0.9.37, build 212 (2025-03-16 xx:xx UTC)
|
||||||
- Improved the experience of the data selection component when no data sources are configured yet.
|
- Improved the experience of the data selection component when no data sources are configured yet.
|
||||||
|
- Improved the data source selection behavior when no data source is available or selected, for whatever reason.
|
||||||
- Moved the data source settings into the data selection component.
|
- Moved the data source settings into the data selection component.
|
Loading…
Reference in New Issue
Block a user