mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 00:40:20 +00:00 
			
		
		
		
	Removed unnecessary retrieval description
This commit is contained in:
		
							parent
							
								
									b4eef64564
								
							
						
					
					
						commit
						08ea4a9af8
					
				@ -201,7 +201,6 @@
 | 
			
		||||
    Data retrieval settings
 | 
			
		||||
</MudText>
 | 
			
		||||
 | 
			
		||||
<MudTextField T="string" @bind-Text="@this.retrievalDescription" Validation="@this.ValidateRetrievalDescription" Label="Describe your data retrieval process" Variant="Variant.Outlined" Margin="Margin.Normal" Lines="6" AutoGrow="@true" MaxLines="12" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
 | 
			
		||||
<MudTextField T="string" @bind-Text="@this.additionalLibraries" Label="(Optional) Additional libraries" HelperText="Do you want to include additional libraries? Then name them and briefly describe what you want to achieve with them." Variant="Variant.Outlined" Margin="Margin.Normal" Lines="3" AutoGrow="@true" MaxLines="12" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h4" Class="mt-6 mb-1">
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,6 @@ public partial class AssistantERI : AssistantBaseCore
 | 
			
		||||
            this.selectedOperatingSystem = OperatingSystem.NONE;
 | 
			
		||||
            this.allowedLLMProviders = AllowedLLMProviders.NONE;
 | 
			
		||||
            this.embeddings = new();
 | 
			
		||||
            this.retrievalDescription = string.Empty;
 | 
			
		||||
            this.additionalLibraries = string.Empty;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
@ -92,7 +91,6 @@ public partial class AssistantERI : AssistantBaseCore
 | 
			
		||||
            this.authDescription = this.SettingsManager.ConfigurationData.ERI.PreselectedAuthDescription;
 | 
			
		||||
            this.selectedOperatingSystem = this.SettingsManager.ConfigurationData.ERI.PreselectedOperatingSystem;
 | 
			
		||||
            this.allowedLLMProviders = this.SettingsManager.ConfigurationData.ERI.PreselectedAllowedLLMProviders;
 | 
			
		||||
            this.retrievalDescription = this.SettingsManager.ConfigurationData.ERI.PreselectedRetrievalDescription;
 | 
			
		||||
            this.embeddings = this.SettingsManager.ConfigurationData.ERI.PreselectedEmbeddingInfos;
 | 
			
		||||
            this.additionalLibraries = this.SettingsManager.ConfigurationData.ERI.PreselectedAdditionalLibraries;
 | 
			
		||||
            return true;
 | 
			
		||||
@ -126,7 +124,6 @@ public partial class AssistantERI : AssistantBaseCore
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedAuthDescription = this.authDescription;
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedOperatingSystem = this.selectedOperatingSystem;
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedAllowedLLMProviders = this.allowedLLMProviders;
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedRetrievalDescription = this.retrievalDescription;
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedEmbeddingInfos = this.embeddings;
 | 
			
		||||
        this.SettingsManager.ConfigurationData.ERI.PreselectedAdditionalLibraries = this.additionalLibraries;
 | 
			
		||||
        await this.SettingsManager.StoreSettings();
 | 
			
		||||
@ -149,7 +146,6 @@ public partial class AssistantERI : AssistantBaseCore
 | 
			
		||||
    private OperatingSystem selectedOperatingSystem = OperatingSystem.NONE;
 | 
			
		||||
    private AllowedLLMProviders allowedLLMProviders = AllowedLLMProviders.NONE;
 | 
			
		||||
    private List<EmbeddingInfo> embeddings = new();
 | 
			
		||||
    private string retrievalDescription = string.Empty;
 | 
			
		||||
    private string additionalLibraries = string.Empty;
 | 
			
		||||
    
 | 
			
		||||
    private string? ValidateServerName(string name)
 | 
			
		||||
@ -396,14 +392,6 @@ public partial class AssistantERI : AssistantBaseCore
 | 
			
		||||
        return $"You have selected {selectedValues.Count} authentication methods";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private string? ValidateRetrievalDescription(string description)
 | 
			
		||||
    {
 | 
			
		||||
        if(string.IsNullOrWhiteSpace(description))
 | 
			
		||||
            return "Please describe how the data retrieval process should work. This is important for the integration of the data source into AI Studio by means of the ERI.";
 | 
			
		||||
        
 | 
			
		||||
        return null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private bool NeedHostnamePort()
 | 
			
		||||
    {
 | 
			
		||||
        switch (this.selectedDataSource)
 | 
			
		||||
 | 
			
		||||
@ -98,10 +98,7 @@ public sealed class DataERI
 | 
			
		||||
    public List<EmbeddingInfo> PreselectedEmbeddingInfos { get; set; } = new();
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// Do you want to preselect a retrieval description?
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public string PreselectedRetrievalDescription { get; set; } = string.Empty;
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// Do you want to preselect any additional libraries?
 | 
			
		||||
    /// </summary>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user