Show why an embedding or a retrieval failed

This commit is contained in:
Thorsten Sommer committed 2026-09-06 16:13:28 +02:00
1 parent 21a01499da
commit 871bbfe79a
5 files changed
+134 -2

No files matched your search

@@ -77,6 +77,15 @@ public partial class Embeddings : MSGComponentBase
(status.State is DataSourceEmbeddingState.FAILED || status.FailedFiles > 0);
}
/// <summary>
/// Takes the user to the settings, where the embedding providers are configured.
/// </summary>
/// <remarks>
/// Offered only for the failures a setting fixes, such as a rejected API key. Reading what
/// went wrong and then having to find the right page is where people give up.
/// </remarks>
private void OpenEmbeddingProviderSettings() => this.NavigationManager.NavigateTo(Routes.SETTINGS);
private async Task RefreshDataSource(DataSourceEmbeddingStatus status)
{
await this.DataSourceEmbeddingService.RetryDataSourceAsync(status.DataSourceId);