mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 14:18:00 +00:00
Warn about unusable data sources only when others were usable
This commit is contained in:
4 files changed
+14
-12
No files matched your search
@@ -108,13 +108,15 @@ public sealed class AISrcSelWithRetCtxVal : IRagProcess
|
||||
proceedWithRAG = false;
|
||||
|
||||
//
|
||||
// When the user picked the sources, none of them survived the security and
|
||||
// confidence checks. That is worth saying out loud: the user chose them and
|
||||
// expects this answer to use them. When the AI picked instead, finding nothing
|
||||
// suitable for this prompt is a normal outcome and stays in the log.
|
||||
// The user picked the sources and expects this answer to use them, so losing them
|
||||
// is worth saying out loud. Only when other sources were usable, though: with
|
||||
// nothing usable at all, the data source selection already states that permanently,
|
||||
// and repeating it with every answer tells the user nothing new. When the AI picked
|
||||
// instead, finding nothing suitable for this prompt is a normal outcome and stays
|
||||
// in the log.
|
||||
//
|
||||
if(!chatThread.DataSourceOptions.AutomaticDataSourceSelection)
|
||||
await MessageBus.INSTANCE.SendWarning(new(Icons.Material.Filled.Source, TB("None of your selected data sources is available for the chosen provider. This answer was created without them.")));
|
||||
if(!chatThread.DataSourceOptions.AutomaticDataSourceSelection && dataSources.AllowedDataSources.Count > 0)
|
||||
await MessageBus.INSTANCE.SendWarning(new(Icons.Material.Filled.Source, TB("None of your selected data sources could be used. This answer was created without them.")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user