mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 02:20:20 +00:00 
			
		
		
		
	Fixed unique embedding method and retrieval process name rules when editing them
This commit is contained in:
		
							parent
							
								
									dff83c36ca
								
							
						
					
					
						commit
						3134781a22
					
				@ -437,7 +437,7 @@ public partial class AssistantERI : AssistantBaseCore
 | 
				
			|||||||
            { x => x.DataUsedWhen, embeddingInfo.UsedWhen },
 | 
					            { x => x.DataUsedWhen, embeddingInfo.UsedWhen },
 | 
				
			||||||
            { x => x.DataLink, embeddingInfo.Link },
 | 
					            { 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 },
 | 
					            { x => x.IsEditing, true },
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -505,7 +505,7 @@ public partial class AssistantERI : AssistantBaseCore
 | 
				
			|||||||
            
 | 
					            
 | 
				
			||||||
            { x => x.IsEditing, true },
 | 
					            { x => x.IsEditing, true },
 | 
				
			||||||
            { x => x.AvailableEmbeddings, this.embeddings },
 | 
					            { 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);
 | 
					        var dialogReference = await this.DialogService.ShowAsync<RetrievalProcessDialog>("Edit Retrieval Process", dialogParameters, DialogOptions.FULLSCREEN);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user