Let people change the embedding of an indexed data source

This commit is contained in:
Thorsten Sommer committed 2026-09-18 18:11:00 +02:00
1 parent 946ae1a5a5
commit 3a7f9b4deb
6 files changed
+88 -102

No files matched your search

@@ -335,8 +335,8 @@ public partial class DataSourceManagement : MSGComponentBase
return;
IDataSource? editedDataSource = null;
var lockDataSourceIdentity = dataSource is IInternalDataSource
&& await this.DataSourceEmbeddingService.ShouldLockDataSourceIdentityAsync(dataSource.Id);
var lockDataSourceOrigin = dataSource is IInternalDataSource
&& await this.DataSourceEmbeddingService.ShouldLockDataSourceOriginAsync(dataSource.Id);
switch (dataSource)
{
case DataSourceLocalFile localFile:
@@ -344,7 +344,7 @@ public partial class DataSourceManagement : MSGComponentBase
{
{ x => x.IsEditing, true },
{ x => x.DataSource, localFile },
{ x => x.LockSourceAndEmbedding, lockDataSourceIdentity },
{ x => x.LockSource, lockDataSourceOrigin },
{ x => x.AvailableEmbeddings, this.availableEmbeddingProviders }
};
@@ -361,7 +361,7 @@ public partial class DataSourceManagement : MSGComponentBase
{
{ x => x.IsEditing, true },
{ x => x.DataSource, localDirectory },
{ x => x.LockSourceAndEmbedding, lockDataSourceIdentity },
{ x => x.LockSource, lockDataSourceOrigin },
{ x => x.AvailableEmbeddings, this.availableEmbeddingProviders }
};