Improved adding local data sources without an embedding provider (#1084)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-18 16:50:21 +02:00
1 parent bca9e7ea89
commit 92fa0d08ef
20 files changed
+590 -154

No files matched your search

@@ -181,7 +181,17 @@ public sealed class DataSourceValidation
public string? ValidateEmbeddingProviderAccess(string embeddingId)
{
var embeddingIssue = this.ValidateEmbeddingId(embeddingId);
return embeddingIssue ?? this.ValidateSelectedEmbeddingProviderAccess();
if(embeddingIssue is not null)
return embeddingIssue;
//
// An id which matches no provider belongs to one which was deleted since. Saved like this, the
// data source keeps pointing at a provider nobody can reach, and nothing of it is embedded:
//
if(this.GetSelectedEmbeddingProvider() is null)
return TB("The embedding provider of this data source no longer exists. Please select another one.");
return this.ValidateSelectedEmbeddingProviderAccess();
}
public string? ValidateDataSourceConfidenceLevel(ConfidenceLevel confidenceLevel)