mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 01:33:48 +00:00
Fixed unique embedding method and retrieval process name rules when editing them
This commit is contained in:
1 file changed
+2
-2
@@ -437,7 +437,7 @@ public partial class AssistantERI : AssistantBaseCore
|
||||
{ x => x.DataUsedWhen, embeddingInfo.UsedWhen },
|
||||
{ x => x.DataLink, embeddingInfo.Link },
|
||||
|
||||
{ x => x.UsedEmbeddingMethodNames, this.embeddings.Select(n => n.EmbeddingName).ToList() },
|
||||
{ x => x.UsedEmbeddingMethodNames, this.embeddings.Where(n => n != embeddingInfo).Select(n => n.EmbeddingName).ToList() },
|
||||
{ x => x.IsEditing, true },
|
||||
};
|
||||
|
||||
@@ -505,7 +505,7 @@ public partial class AssistantERI : AssistantBaseCore
|
||||
|
||||
{ x => x.IsEditing, true },
|
||||
{ x => x.AvailableEmbeddings, this.embeddings },
|
||||
{ x => x.UsedRetrievalProcessNames, this.retrievalProcesses.Select(n => n.Name).ToList() },
|
||||
{ x => x.UsedRetrievalProcessNames, this.retrievalProcesses.Where(n => n != retrievalInfo).Select(n => n.Name).ToList() },
|
||||
};
|
||||
|
||||
var dialogReference = await this.DialogService.ShowAsync<RetrievalProcessDialog>("Edit Retrieval Process", dialogParameters, DialogOptions.FULLSCREEN);
|
||||
|
||||
Reference in new issue
Block a user