@using AIStudio.Settings
@if (this.SelectionMode is DataSourceSelectionMode.SELECTION_MODE)
{
@if (this.PopoverTriggerMode is PopoverTriggerMode.ICON)
{
}
else
{
Select data
}
Data Source Selection
@if (this.waitingForDataSources)
{
}
else if (this.SettingsManager.ConfigurationData.DataSources.Count == 0)
{
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).
Manage Data Sources
Read more about ERI
}
else if (this.showDataSourceSelection)
{
@if (this.areDataSourcesEnabled)
{
@if (this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.EnableRetrievalContextValidation)
{
}
@switch (this.aiBasedSourceSelection)
{
case true when this.availableDataSources.Count == 0:
Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
break;
case true when this.DataSourcesAISelected.Count == 0:
The AI evaluates each of your inputs to determine whether and which data sources are necessary. Currently, the AI has not selected any source.
break;
case false when this.availableDataSources.Count == 0:
Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
break;
case false:
this.SelectionChanged(x))" Style="max-height: 14em;">
@foreach (var source in this.availableDataSources)
{
@source.Name
}
break;
case true:
@foreach (var source in this.availableDataSources)
{
@source.Name
}
@foreach (var source in this.DataSourcesAISelected)
{
@source.DataSource.Name
@(this.GetAIReasoning(source))
}
break;
}
}
}
Close
}
else if (this.SelectionMode is DataSourceSelectionMode.CONFIGURATION_MODE)
{
Data Source Selection
@if (!string.IsNullOrWhiteSpace(this.ConfigurationHeaderMessage))
{
@this.ConfigurationHeaderMessage
}
@if (this.areDataSourcesEnabled)
{
this.SelectionChanged(x))">
@foreach (var source in this.availableDataSources)
{
@source.Name
}
}
}