Improved the data selection component if no sources are configured ()

This commit is contained in:
Thorsten Sommer 2025-03-16 14:25:49 +01:00 committed by GitHub
parent 293b0ffdb0
commit 75b3238e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions
app/MindWork AI Studio
Components
wwwroot/changelog

View File

@ -37,6 +37,26 @@
<MudSkeleton Width="80%"/> <MudSkeleton Width="80%"/>
<MudSkeleton Width="100%"/> <MudSkeleton Width="100%"/>
} }
else if (this.SettingsManager.ConfigurationData.DataSources.Count == 0)
{
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
You haven't configured any data sources. To grant the AI access to your data, you need to
add such a source. However, if you wish to use data from your device, you first have to set up
a so-called embedding. This embedding is necessary so the AI can effectively search your data,
find and retrieve the correct information required for each task. In addition to local data,
you can also incorporate your company's data. To do so, your company must provide the data through
an ERI (External Retrieval Interface).
</MudJustifiedText>
<MudStack StretchItems="StretchItems.None" AlignItems="AlignItems.Start">
<MudButton Variant="Variant.Filled" OnClick="this.OpenSettingsDialog" StartIcon="@Icons.Material.Filled.Settings">
Manage Data Sources
</MudButton>
<MudButton Variant="Variant.Filled" Href="https://mindworkai.org/#eri---external-retrieval-interface" Target="_blank" StartIcon="@Icons.Material.Filled.Settings">
Read more about ERI
</MudButton>
</MudStack>
}
else if (this.showDataSourceSelection) else if (this.showDataSourceSelection)
{ {
<MudTextSwitch Label="Are data sources enabled?" Value="@this.areDataSourcesEnabled" LabelOn="Yes, I want to use data sources." LabelOff="No, I don't want to use data sources." ValueChanged="@this.EnabledChanged"/> <MudTextSwitch Label="Are data sources enabled?" Value="@this.areDataSourcesEnabled" LabelOn="Yes, I want to use data sources." LabelOff="No, I don't want to use data sources." ValueChanged="@this.EnabledChanged"/>

View File

@ -1,2 +1,3 @@
# 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.
- Moved the data source settings into the data selection component. - Moved the data source settings into the data selection component.