Skip to content

Commit 75b3238

Browse files
Improved the data selection component if no sources are configured (#354)
1 parent 293b0ff commit 75b3238

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

app/MindWork AI Studio/Components/DataSourceSelection.razor

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,26 @@
3737
<MudSkeleton Width="80%"/>
3838
<MudSkeleton Width="100%"/>
3939
}
40+
else if (this.SettingsManager.ConfigurationData.DataSources.Count == 0)
41+
{
42+
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
43+
You haven't configured any data sources. To grant the AI access to your data, you need to
44+
add such a source. However, if you wish to use data from your device, you first have to set up
45+
a so-called embedding. This embedding is necessary so the AI can effectively search your data,
46+
find and retrieve the correct information required for each task. In addition to local data,
47+
you can also incorporate your company's data. To do so, your company must provide the data through
48+
an ERI (External Retrieval Interface).
49+
</MudJustifiedText>
50+
51+
<MudStack StretchItems="StretchItems.None" AlignItems="AlignItems.Start">
52+
<MudButton Variant="Variant.Filled" OnClick="this.OpenSettingsDialog" StartIcon="@Icons.Material.Filled.Settings">
53+
Manage Data Sources
54+
</MudButton>
55+
<MudButton Variant="Variant.Filled" Href="https://mindworkai.org/#eri---external-retrieval-interface" Target="_blank" StartIcon="@Icons.Material.Filled.Settings">
56+
Read more about ERI
57+
</MudButton>
58+
</MudStack>
59+
}
4060
else if (this.showDataSourceSelection)
4161
{
4262
<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"/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# v0.9.37, build 212 (2025-03-16 xx:xx UTC)
2+
- Improved the experience of the data selection component when no data sources are configured yet.
23
- Moved the data source settings into the data selection component.

0 commit comments

Comments
 (0)