mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 19:39:46 +00:00
Renamed EDI to ERI
This commit is contained in:
parent
9bc6d04b22
commit
3f5ebc53c3
@ -1,6 +1,7 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=AI/@EntryIndexedValue">AI</s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=EDI/@EntryIndexedValue">EDI</s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=ERI/@EntryIndexedValue">ERI</s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=LLM/@EntryIndexedValue">LLM</s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=LM/@EntryIndexedValue">LM</s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MSG/@EntryIndexedValue">MSG</s:String>
|
||||
|
@ -1,8 +0,0 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
|
||||
public enum EDIVersion
|
||||
{
|
||||
NONE,
|
||||
|
||||
V1,
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
@attribute [Route(Routes.ASSISTANT_EDI)]
|
||||
@attribute [Route(Routes.ASSISTANT_ERI)]
|
||||
@using MudExtensions
|
||||
@inherits AssistantBaseCore
|
||||
|
||||
<MudText Typo="Typo.body1" Class="mb-3">
|
||||
You can imagine it like this: Hypothetically, when Wikipedia implemented the EDI, it would vectorize
|
||||
You can imagine it like this: Hypothetically, when Wikipedia implemented the ERI, it would vectorize
|
||||
all pages using an embedding method. All of Wikipedia’s data would remain with Wikipedia, including the
|
||||
vector database (decentralized approach). Then, any AI Studio user could add Wikipedia as a data source to
|
||||
significantly reduce the hallucination of the LLM in knowledge questions.
|
||||
@ -13,24 +13,24 @@
|
||||
<b>Related links:</b>
|
||||
</MudText>
|
||||
<MudList T="string" Class="mb-6">
|
||||
<MudListItem T="string" Icon="@Icons.Material.Filled.Link" Target="_blank" Href="https://github.com/MindWorkAI/EDI">EDI repository with example implementation in .NET and C#</MudListItem>
|
||||
<MudListItem T="string" Icon="@Icons.Material.Filled.Link" Target="_blank" Href="https://github.com/MindWorkAI/ERI">ERI repository with example implementation in .NET and C#</MudListItem>
|
||||
<MudListItem T="string" Icon="@Icons.Material.Filled.Link" Target="_blank" Href="https://mindworkai.org/swagger-ui.html">Interactive documentation aka Swagger UI</MudListItem>
|
||||
</MudList>
|
||||
|
||||
<PreviewPrototype/>
|
||||
<div class="mb-6"></div>
|
||||
|
||||
<MudTextField T="string" @bind-Text="@this.serverName" Validation="@this.ValidateServerName" Immediate="@true" Label="EDI server name" HelperText="Please give your EDI server a name that provides information about the data source and/or its intended purpose. The name will be displayed to users in AI Studio." Counter="60" MaxLength="60" Variant="Variant.Outlined" Margin="Margin.Normal" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
|
||||
<MudTextField T="string" @bind-Text="@this.serverDescription" Validation="@this.ValidateServerDescription" Immediate="@true" Label="EDI server description" HelperText="Please provide a brief description of your EDI server. Describe or explain what your EDI server does and what data it uses for this purpose. This description will be shown to users in AI Studio." Counter="512" MaxLength="512" Variant="Variant.Outlined" Margin="Margin.Normal" Lines="3" AutoGrow="@true" MaxLines="6" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
|
||||
<MudTextField T="string" @bind-Text="@this.serverName" Validation="@this.ValidateServerName" Immediate="@true" Label="ERI server name" HelperText="Please give your ERI server a name that provides information about the data source and/or its intended purpose. The name will be displayed to users in AI Studio." Counter="60" MaxLength="60" Variant="Variant.Outlined" Margin="Margin.Normal" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
|
||||
<MudTextField T="string" @bind-Text="@this.serverDescription" Validation="@this.ValidateServerDescription" Immediate="@true" Label="ERI server description" HelperText="Please provide a brief description of your ERI server. Describe or explain what your ERI server does and what data it uses for this purpose. This description will be shown to users in AI Studio." Counter="512" MaxLength="512" Variant="Variant.Outlined" Margin="Margin.Normal" Lines="3" AutoGrow="@true" MaxLines="6" UserAttributes="@USER_INPUT_ATTRIBUTES" Class="mb-3"/>
|
||||
|
||||
<MudStack Row="@true" AlignItems="AlignItems.Center" Class="mb-3">
|
||||
<MudSelect T="EDIVersion" @bind-Value="@this.selectedEDIVersion" Label="EDI specification version" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateEDIVersion">
|
||||
@foreach (var version in Enum.GetValues<EDIVersion>())
|
||||
<MudSelect T="ERIVersion" @bind-Value="@this.selectedERIVersion" Label="ERI specification version" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateERIVersion">
|
||||
@foreach (var version in Enum.GetValues<ERIVersion>())
|
||||
{
|
||||
<MudSelectItem Value="@version">@version</MudSelectItem>
|
||||
}
|
||||
</MudSelect>
|
||||
<MudButton Variant="Variant.Outlined" Size="Size.Small" Disabled="@(!this.selectedEDIVersion.WasSpecificationSelected())" Href="@this.selectedEDIVersion.SpecificationURL()" Target="_blank">
|
||||
<MudButton Variant="Variant.Outlined" Size="Size.Small" Disabled="@(!this.selectedERIVersion.WasSpecificationSelected())" Href="@this.selectedERIVersion.SpecificationURL()" Target="_blank">
|
||||
<MudIcon Icon="@Icons.Material.Filled.Link" Class="mr-2"/> Download specification
|
||||
</MudButton>
|
||||
</MudStack>
|
||||
@ -76,7 +76,7 @@
|
||||
@if (this.dataSourcePort < 1024)
|
||||
{
|
||||
<MudText Typo="Typo.body2">
|
||||
<b>Warning:</b> Ports below 1024 are reserved for system services. Your EDI server need to run with elevated permissions (root user).
|
||||
<b>Warning:</b> Ports below 1024 are reserved for system services. Your ERI server need to run with elevated permissions (root user).
|
||||
</MudText>
|
||||
}
|
||||
</div>
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
@if (this.selectedAuthenticationMethods.Contains(Auth.KERBEROS))
|
||||
{
|
||||
<MudSelect T="OperatingSystem" @bind-Value="@this.selectedOperatingSystem" Label="Operating system on which your EDI will run" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateOperatingSystem" Class="mb-1">
|
||||
<MudSelect T="OperatingSystem" @bind-Value="@this.selectedOperatingSystem" Label="Operating system on which your ERI will run" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateOperatingSystem" Class="mb-1">
|
||||
@foreach (var os in Enum.GetValues<OperatingSystem>())
|
||||
{
|
||||
<MudSelectItem Value="@os">@os.Name()</MudSelectItem>
|
@ -2,24 +2,24 @@ using AIStudio.Chat;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public partial class AssistantEDI : AssistantBaseCore
|
||||
public partial class AssistantERI : AssistantBaseCore
|
||||
{
|
||||
[Inject]
|
||||
private HttpClient HttpClient { get; set; } = null!;
|
||||
|
||||
public override Tools.Components Component => Tools.Components.EDI_ASSISTANT;
|
||||
public override Tools.Components Component => Tools.Components.ERI_ASSISTANT;
|
||||
|
||||
protected override string Title => "EDI Server";
|
||||
protected override string Title => "ERI Server";
|
||||
|
||||
protected override string Description =>
|
||||
"""
|
||||
The EDI is the (E)xternal (D)ata AP(I) for AI Studio. The EDI acts as a contract between decentralized data
|
||||
sources and AI Studio. The EDI is implemented by the data sources, allowing them to be integrated into AI
|
||||
Studio later. This means that the data sources assume the server role and AI Studio assumes the client role
|
||||
of the API. This approach serves to realize a Retrieval-Augmented Generation (RAG) process with external
|
||||
data.
|
||||
The ERI is the External Retrieval Interface for AI Studio and other tools. The ERI acts as a contract
|
||||
between decentralized data sources and, e.g., AI Studio. The ERI is implemented by the data sources,
|
||||
allowing them to be integrated into AI Studio later. This means that the data sources assume the server
|
||||
role and AI Studio (or any other LLM tool) assumes the client role of the API. This approach serves to
|
||||
realize a Retrieval-Augmented Generation (RAG) process with external data.
|
||||
""";
|
||||
|
||||
protected override string SystemPrompt =>
|
||||
@ -29,7 +29,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
|
||||
protected override IReadOnlyList<IButtonData> FooterButtons => [];
|
||||
|
||||
protected override string SubmitText => "Create the EDI server";
|
||||
protected override string SubmitText => "Create the ERI server";
|
||||
|
||||
protected override Func<Task> SubmitAction => this.GenerateServer;
|
||||
|
||||
@ -44,7 +44,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
{
|
||||
this.serverName = string.Empty;
|
||||
this.serverDescription = string.Empty;
|
||||
this.selectedEDIVersion = EDIVersion.V1;
|
||||
this.selectedERIVersion = ERIVersion.V1;
|
||||
this.selectedProgrammingLanguage = ProgrammingLanguages.NONE;
|
||||
this.otherProgrammingLanguage = string.Empty;
|
||||
this.selectedDataSource = DataSources.NONE;
|
||||
@ -62,26 +62,26 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
|
||||
protected override bool MightPreselectValues()
|
||||
{
|
||||
if (this.SettingsManager.ConfigurationData.EDI.PreselectOptions)
|
||||
if (this.SettingsManager.ConfigurationData.ERI.PreselectOptions)
|
||||
{
|
||||
this.serverName = this.SettingsManager.ConfigurationData.EDI.PreselectedServerName;
|
||||
this.serverDescription = this.SettingsManager.ConfigurationData.EDI.PreselectedServerDescription;
|
||||
this.selectedEDIVersion = this.SettingsManager.ConfigurationData.EDI.PreselectedEDIVersion;
|
||||
this.selectedProgrammingLanguage = this.SettingsManager.ConfigurationData.EDI.PreselectedProgrammingLanguage;
|
||||
this.otherProgrammingLanguage = this.SettingsManager.ConfigurationData.EDI.PreselectedOtherProgrammingLanguage;
|
||||
this.selectedDataSource = this.SettingsManager.ConfigurationData.EDI.PreselectedDataSource;
|
||||
this.dataSourceProductName = this.SettingsManager.ConfigurationData.EDI.PreselectedDataSourceProductName;
|
||||
this.otherDataSource = this.SettingsManager.ConfigurationData.EDI.PreselectedOtherDataSource;
|
||||
this.dataSourceHostname = this.SettingsManager.ConfigurationData.EDI.PreselectedDataSourceHostname;
|
||||
this.dataSourcePort = this.SettingsManager.ConfigurationData.EDI.PreselectedDataSourcePort;
|
||||
this.serverName = this.SettingsManager.ConfigurationData.ERI.PreselectedServerName;
|
||||
this.serverDescription = this.SettingsManager.ConfigurationData.ERI.PreselectedServerDescription;
|
||||
this.selectedERIVersion = this.SettingsManager.ConfigurationData.ERI.PreselectedERIVersion;
|
||||
this.selectedProgrammingLanguage = this.SettingsManager.ConfigurationData.ERI.PreselectedProgrammingLanguage;
|
||||
this.otherProgrammingLanguage = this.SettingsManager.ConfigurationData.ERI.PreselectedOtherProgrammingLanguage;
|
||||
this.selectedDataSource = this.SettingsManager.ConfigurationData.ERI.PreselectedDataSource;
|
||||
this.dataSourceProductName = this.SettingsManager.ConfigurationData.ERI.PreselectedDataSourceProductName;
|
||||
this.otherDataSource = this.SettingsManager.ConfigurationData.ERI.PreselectedOtherDataSource;
|
||||
this.dataSourceHostname = this.SettingsManager.ConfigurationData.ERI.PreselectedDataSourceHostname;
|
||||
this.dataSourcePort = this.SettingsManager.ConfigurationData.ERI.PreselectedDataSourcePort;
|
||||
|
||||
var authMethods = new HashSet<Auth>(this.SettingsManager.ConfigurationData.EDI.PreselectedAuthMethods);
|
||||
var authMethods = new HashSet<Auth>(this.SettingsManager.ConfigurationData.ERI.PreselectedAuthMethods);
|
||||
this.selectedAuthenticationMethods = authMethods;
|
||||
|
||||
this.authDescription = this.SettingsManager.ConfigurationData.EDI.PreselectedAuthDescription;
|
||||
this.selectedOperatingSystem = this.SettingsManager.ConfigurationData.EDI.PreselectedOperatingSystem;
|
||||
this.retrievalDescription = this.SettingsManager.ConfigurationData.EDI.PreselectedRetrievalDescription;
|
||||
this.additionalLibraries = this.SettingsManager.ConfigurationData.EDI.PreselectedAdditionalLibraries;
|
||||
this.authDescription = this.SettingsManager.ConfigurationData.ERI.PreselectedAuthDescription;
|
||||
this.selectedOperatingSystem = this.SettingsManager.ConfigurationData.ERI.PreselectedOperatingSystem;
|
||||
this.retrievalDescription = this.SettingsManager.ConfigurationData.ERI.PreselectedRetrievalDescription;
|
||||
this.additionalLibraries = this.SettingsManager.ConfigurationData.ERI.PreselectedAdditionalLibraries;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
|
||||
private string serverName = string.Empty;
|
||||
private string serverDescription = string.Empty;
|
||||
private EDIVersion selectedEDIVersion = EDIVersion.V1;
|
||||
private ERIVersion selectedERIVersion = ERIVersion.V1;
|
||||
private ProgrammingLanguages selectedProgrammingLanguage = ProgrammingLanguages.NONE;
|
||||
private string otherProgrammingLanguage = string.Empty;
|
||||
private DataSources selectedDataSource = DataSources.NONE;
|
||||
@ -107,10 +107,10 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
private string? ValidateServerName(string name)
|
||||
{
|
||||
if(string.IsNullOrWhiteSpace(name))
|
||||
return "Please provide a name for your EDI server. This name will be used to identify the server in AI Studio.";
|
||||
return "Please provide a name for your ERI server. This name will be used to identify the server in AI Studio.";
|
||||
|
||||
if(name.Length is > 60 or < 6)
|
||||
return "The name of your EDI server must be between 6 and 60 characters long.";
|
||||
return "The name of your ERI server must be between 6 and 60 characters long.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -118,18 +118,18 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
private string? ValidateServerDescription(string description)
|
||||
{
|
||||
if(string.IsNullOrWhiteSpace(description))
|
||||
return "Please provide a description for your EDI server. What data will the server retrieve? This description will be used to inform users about the purpose of your EDI.";
|
||||
return "Please provide a description for your ERI server. What data will the server retrieve? This description will be used to inform users about the purpose of your ERI server.";
|
||||
|
||||
if(description.Length is < 32 or > 512)
|
||||
return "The description of your EDI server must be between 32 and 512 characters long.";
|
||||
return "The description of your ERI server must be between 32 and 512 characters long.";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private string? ValidateEDIVersion(EDIVersion version)
|
||||
private string? ValidateERIVersion(ERIVersion version)
|
||||
{
|
||||
if (version == EDIVersion.NONE)
|
||||
return "Please select an EDI specification version for the EDI server.";
|
||||
if (version == ERIVersion.NONE)
|
||||
return "Please select an ERI specification version for the ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -140,7 +140,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if (language == ProgrammingLanguages.NONE)
|
||||
return "Please select a programming language for the EDI server.";
|
||||
return "Please select a programming language for the ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -151,7 +151,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if(string.IsNullOrWhiteSpace(language))
|
||||
return "Please specify the custom programming language for the EDI server.";
|
||||
return "Please specify the custom programming language for the ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -162,7 +162,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if (dataSource == DataSources.NONE)
|
||||
return "Please select a data source for the EDI server.";
|
||||
return "Please select a data source for the ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -184,7 +184,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if(string.IsNullOrWhiteSpace(dataSource))
|
||||
return "Please describe the data source of your EDI server.";
|
||||
return "Please describe the data source of your ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -199,7 +199,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if(string.IsNullOrWhiteSpace(hostname))
|
||||
return "Please provide the hostname of the data source. Use 'localhost' if the data source is on the same machine as the EDI server.";
|
||||
return "Please provide the hostname of the data source. Use 'localhost' if the data source is on the same machine as the ERI server.";
|
||||
|
||||
if(hostname.Length > 255)
|
||||
return "The hostname of the data source must not exceed 255 characters.";
|
||||
@ -227,7 +227,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
|
||||
private void DataSourceWasChanged()
|
||||
{
|
||||
if(this.SettingsManager.ConfigurationData.EDI.PreselectedDataSourcePort is not null)
|
||||
if(this.SettingsManager.ConfigurationData.ERI.PreselectedDataSourcePort is not null)
|
||||
return;
|
||||
|
||||
//
|
||||
@ -249,7 +249,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
{
|
||||
var authenticationMethods = (this.selectedAuthenticationMethods as HashSet<Auth>)!;
|
||||
if(authenticationMethods.Count == 0)
|
||||
return "Please select at least one authentication method for the EDI server.";
|
||||
return "Please select at least one authentication method for the ERI server.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -279,7 +279,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
return null;
|
||||
|
||||
if(os is OperatingSystem.NONE)
|
||||
return "Please select the operating system on which the EDI server will run. This is necessary when using SSO with Kerberos.";
|
||||
return "Please select the operating system on which the ERI server will run. This is necessary when using SSO with Kerberos.";
|
||||
|
||||
return null;
|
||||
}
|
||||
@ -328,7 +328,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
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 EDI.";
|
||||
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;
|
||||
}
|
||||
@ -352,7 +352,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
||||
if (!this.inputIsValid)
|
||||
return;
|
||||
|
||||
var ediSpecification = await this.selectedEDIVersion.ReadSpecification(this.HttpClient);
|
||||
var ediSpecification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
||||
if (string.IsNullOrWhiteSpace(ediSpecification))
|
||||
{
|
||||
// TODO: Show an error message
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public enum Auth
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class AuthExtensions
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public enum DataSources
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class DataSourcesExtensions
|
||||
{
|
8
app/MindWork AI Studio/Assistants/ERI/ERIVersion.cs
Normal file
8
app/MindWork AI Studio/Assistants/ERI/ERIVersion.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public enum ERIVersion
|
||||
{
|
||||
NONE,
|
||||
|
||||
V1,
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class EDIVersionExtensions
|
||||
public static class ERIVersionExtensions
|
||||
{
|
||||
public static async Task<string> ReadSpecification(this EDIVersion version, HttpClient httpClient)
|
||||
public static async Task<string> ReadSpecification(this ERIVersion version, HttpClient httpClient)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -16,12 +16,12 @@ public static class EDIVersionExtensions
|
||||
}
|
||||
}
|
||||
|
||||
public static string SpecificationURL(this EDIVersion version)
|
||||
public static string SpecificationURL(this ERIVersion version)
|
||||
{
|
||||
var nameLower = version.ToString().ToLowerInvariant();
|
||||
var filename = $"{nameLower}.json";
|
||||
return $"specs/edi/{filename}";
|
||||
return $"specs/eri/{filename}";
|
||||
}
|
||||
|
||||
public static bool WasSpecificationSelected(this EDIVersion version) => version != EDIVersion.NONE;
|
||||
public static bool WasSpecificationSelected(this ERIVersion version) => version != ERIVersion.NONE;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public enum OperatingSystem
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class OperatingSystemExtensions
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public enum ProgrammingLanguages
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AIStudio.Assistants.EDI;
|
||||
namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class ProgrammingLanguagesExtensions
|
||||
{
|
@ -44,7 +44,7 @@
|
||||
<AssistantBlock Name="Coding" Description="Get coding and debugging support from a LLM." Icon="@Icons.Material.Filled.Code" Link="@Routes.ASSISTANT_CODING"/>
|
||||
@if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager))
|
||||
{
|
||||
<AssistantBlock Name="EDI Server" Description="Generate an EDI server to integrate business systems." Icon="@Icons.Material.Filled.PrivateConnectivity" Link="@Routes.ASSISTANT_EDI"/>
|
||||
<AssistantBlock Name="ERI Server" Description="Generate an ERI server to integrate business systems." Icon="@Icons.Material.Filled.PrivateConnectivity" Link="@Routes.ASSISTANT_ERI"/>
|
||||
}
|
||||
</MudStack>
|
||||
|
||||
|
@ -24,6 +24,6 @@ public sealed partial class Routes
|
||||
public const string ASSISTANT_MY_TASKS = "/assistant/my-tasks";
|
||||
public const string ASSISTANT_JOB_POSTING = "/assistant/job-posting";
|
||||
public const string ASSISTANT_BIAS = "/assistant/bias-of-the-day";
|
||||
public const string ASSISTANT_EDI = "/assistant/edi";
|
||||
public const string ASSISTANT_ERI = "/assistant/eri";
|
||||
// ReSharper restore InconsistentNaming
|
||||
}
|
@ -58,7 +58,7 @@ public sealed class Data
|
||||
|
||||
public DataCoding Coding { get; init; } = new();
|
||||
|
||||
public DataEDI EDI { get; init; } = new();
|
||||
public DataERI ERI { get; init; } = new();
|
||||
|
||||
public DataTextSummarizer TextSummarizer { get; init; } = new();
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
using AIStudio.Assistants.EDI;
|
||||
using AIStudio.Assistants.ERI;
|
||||
using AIStudio.Provider;
|
||||
|
||||
using OperatingSystem = AIStudio.Assistants.EDI.OperatingSystem;
|
||||
using OperatingSystem = AIStudio.Assistants.ERI.OperatingSystem;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataEDI
|
||||
public sealed class DataERI
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any EDI options?
|
||||
/// Preselect any ERI options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
@ -23,12 +23,12 @@ public sealed class DataEDI
|
||||
public string PreselectedServerDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the EDI version?
|
||||
/// Preselect the ERI version?
|
||||
/// </summary>
|
||||
public EDIVersion PreselectedEDIVersion { get; set; } = EDIVersion.NONE;
|
||||
public ERIVersion PreselectedERIVersion { get; set; } = ERIVersion.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the language for implementing the EDI?
|
||||
/// Preselect the language for implementing the ERI?
|
||||
/// </summary>
|
||||
public ProgrammingLanguages PreselectedProgrammingLanguage { get; set; }
|
||||
|
@ -17,7 +17,7 @@ public enum Components
|
||||
MY_TASKS_ASSISTANT,
|
||||
JOB_POSTING_ASSISTANT,
|
||||
BIAS_DAY_ASSISTANT,
|
||||
EDI_ASSISTANT,
|
||||
ERI_ASSISTANT,
|
||||
|
||||
CHAT,
|
||||
}
|
@ -8,7 +8,7 @@ public static class ComponentsExtensions
|
||||
public static bool AllowSendTo(this Components component) => component switch
|
||||
{
|
||||
Components.NONE => false,
|
||||
Components.EDI_ASSISTANT => false,
|
||||
Components.ERI_ASSISTANT => false,
|
||||
Components.BIAS_DAY_ASSISTANT => false,
|
||||
|
||||
_ => true,
|
||||
@ -28,7 +28,7 @@ public static class ComponentsExtensions
|
||||
Components.SYNONYMS_ASSISTANT => "Synonym Assistant",
|
||||
Components.MY_TASKS_ASSISTANT => "My Tasks Assistant",
|
||||
Components.JOB_POSTING_ASSISTANT => "Job Posting Assistant",
|
||||
Components.EDI_ASSISTANT => "EDI Server",
|
||||
Components.ERI_ASSISTANT => "ERI Server",
|
||||
|
||||
Components.CHAT => "New Chat",
|
||||
|
||||
@ -70,7 +70,7 @@ public static class ComponentsExtensions
|
||||
Components.MY_TASKS_ASSISTANT => settingsManager.ConfigurationData.MyTasks.PreselectOptions ? settingsManager.ConfigurationData.MyTasks.MinimumProviderConfidence : default,
|
||||
Components.JOB_POSTING_ASSISTANT => settingsManager.ConfigurationData.JobPostings.PreselectOptions ? settingsManager.ConfigurationData.JobPostings.MinimumProviderConfidence : default,
|
||||
Components.BIAS_DAY_ASSISTANT => settingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions ? settingsManager.ConfigurationData.BiasOfTheDay.MinimumProviderConfidence : default,
|
||||
Components.EDI_ASSISTANT => settingsManager.ConfigurationData.EDI.PreselectOptions ? settingsManager.ConfigurationData.EDI.MinimumProviderConfidence : default,
|
||||
Components.ERI_ASSISTANT => settingsManager.ConfigurationData.ERI.PreselectOptions ? settingsManager.ConfigurationData.ERI.MinimumProviderConfidence : default,
|
||||
|
||||
_ => default,
|
||||
};
|
||||
@ -90,7 +90,7 @@ public static class ComponentsExtensions
|
||||
Components.MY_TASKS_ASSISTANT => settingsManager.ConfigurationData.MyTasks.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.MyTasks.PreselectedProvider) : default,
|
||||
Components.JOB_POSTING_ASSISTANT => settingsManager.ConfigurationData.JobPostings.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.JobPostings.PreselectedProvider) : default,
|
||||
Components.BIAS_DAY_ASSISTANT => settingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.BiasOfTheDay.PreselectedProvider) : default,
|
||||
Components.EDI_ASSISTANT => settingsManager.ConfigurationData.EDI.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.EDI.PreselectedProvider) : default,
|
||||
Components.ERI_ASSISTANT => settingsManager.ConfigurationData.ERI.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.ERI.PreselectedProvider) : default,
|
||||
|
||||
Components.CHAT => settingsManager.ConfigurationData.Chat.PreselectOptions ? settingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.Chat.PreselectedProvider) : default,
|
||||
|
||||
@ -105,7 +105,7 @@ public static class ComponentsExtensions
|
||||
Components.LEGAL_CHECK_ASSISTANT => settingsManager.ConfigurationData.LegalCheck.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.LegalCheck.PreselectedProfile) : default,
|
||||
Components.MY_TASKS_ASSISTANT => settingsManager.ConfigurationData.MyTasks.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.MyTasks.PreselectedProfile) : default,
|
||||
Components.BIAS_DAY_ASSISTANT => settingsManager.ConfigurationData.BiasOfTheDay.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.BiasOfTheDay.PreselectedProfile) : default,
|
||||
Components.EDI_ASSISTANT => settingsManager.ConfigurationData.EDI.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.EDI.PreselectedProfile) : default,
|
||||
Components.ERI_ASSISTANT => settingsManager.ConfigurationData.ERI.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.ERI.PreselectedProfile) : default,
|
||||
|
||||
Components.CHAT => settingsManager.ConfigurationData.Chat.PreselectOptions ? settingsManager.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == settingsManager.ConfigurationData.Chat.PreselectedProfile) : default,
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"openapi": "3.0.1",
|
||||
"info": {
|
||||
"title": "EDI - (E)xternal (D)ata AP(I) for AI Studio",
|
||||
"description": "This API serves as a contract between AI Studio and any external data sources for RAG\n(retrieval-augmented generation). AI Studio acts as the client (the augmentation and\ngeneration parts) and the data sources act as the server (the retrieval part). The data\nsources implement some form of data retrieval and return a suitable context to AI Studio.\nAI Studio, in turn, handles the integration of appropriate LLMs (augmentation & generation).\nData sources can be document or graph databases, or even a file system, for example. They\nwill likely implement an appropriate retrieval process by using some kind of embedding.\nHowever, this API does not inherently require any embedding, as data processing is\nimplemented decentralized by the data sources.",
|
||||
"title": "ERI - (E)xternal (R)etrieval (I)nterface",
|
||||
"description": "This API serves as a contract between LLM tools like AI Studio and any external data sources for RAG\n(retrieval-augmented generation). The tool, e.g., AI Studio acts as the client (the augmentation and\ngeneration parts) and the data sources act as the server (the retrieval part). The data\nsources implement some form of data retrieval and return a suitable context to the LLM tool.\nThe LLM tool, in turn, handles the integration of appropriate LLMs (augmentation & generation).\nData sources can be document or graph databases, or even a file system, for example. They\nwill likely implement an appropriate retrieval process by using some kind of embedding.\nHowever, this API does not inherently require any embedding, as data processing is\nimplemented decentralized by the data sources.",
|
||||
"version": "v1"
|
||||
},
|
||||
"paths": {
|
||||
@ -515,9 +515,9 @@
|
||||
}
|
||||
},
|
||||
"securitySchemes": {
|
||||
"EDI_Token": {
|
||||
"ERI_Token": {
|
||||
"type": "apiKey",
|
||||
"description": "Enter the EDI token yielded by the authentication process at /auth.",
|
||||
"description": "Enter the ERI token yielded by the authentication process at /auth.",
|
||||
"name": "token",
|
||||
"in": "header"
|
||||
}
|
||||
@ -525,7 +525,7 @@
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"EDI_Token": [ ]
|
||||
"ERI_Token": [ ]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user