Improved the error handling in the ERI data source info dialog

This commit is contained in:
Thorsten Sommer 2025-03-08 11:12:21 +01:00
parent 4a5daed77b
commit d664182bd7
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,8 @@
<MudText Typo="Typo.h6" Class="mt-3">
Embeddings
</MudText>
@if (!info.Embeddings.Any())
@* ReSharper disable once ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract *@
@if (info.Embeddings is null || !info.Embeddings.Any())
{
<MudJustifiedText Typo="Typo.body1" Color="Color.Info" Class="mb-3">
The data source does not provide any embedding information.

View File

@ -130,7 +130,6 @@ public partial class DataSourceERI_V1InfoDialog : ComponentBase, IAsyncDisposabl
}
this.retrievalInfoformation = retrievalInfoResult.Data ?? [];
this.StateHasChanged();
}
catch (Exception e)

View File

@ -2,4 +2,5 @@
- Added the "Community & Code" section to the about page. It includes links to the GitHub repositories and the project website.
- Improved the ERI client to expect JSON responses and send JSON requests using camel case.
- Improved the ERI client to raise an error when the server responds with additional JSON data that is not expected.
- Improved the error handling in the ERI data source info dialog in cases where servers respond with an invalid message.
- Improved the error handling for the entire RAG process.