mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 04:20:20 +00:00 
			
		
		
		
	
		
			Some checks are pending
		
		
	
	Build and Release / Read metadata (push) Waiting to run
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
				
			Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
				
			Build and Release / Build app (linux-arm64) (push) Blocked by required conditions
				
			Build and Release / Prepare & create release (push) Blocked by required conditions
				
			Build and Release / Publish release (push) Blocked by required conditions
				
			
		
			
				
	
	
		
			72 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
@using AIStudio.Provider
 | 
						|
@using AIStudio.Settings.DataModel
 | 
						|
@inherits SettingsPanelBase
 | 
						|
 | 
						|
@if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager))
 | 
						|
{
 | 
						|
    <ExpansionPanel HeaderIcon="@Icons.Material.Filled.IntegrationInstructions" HeaderText="Configure Embeddings">
 | 
						|
        <PreviewPrototype/>
 | 
						|
        <MudText Typo="Typo.h4" Class="mb-3">
 | 
						|
            Configured Embeddings
 | 
						|
        </MudText>
 | 
						|
        <MudJustifiedText Typo="Typo.body1" Class="mb-3">
 | 
						|
            Embeddings are a way to represent words, sentences, entire documents, or even images and videos as digital
 | 
						|
            fingerprints. Just like each person has a unique fingerprint, embedding models create unique digital patterns
 | 
						|
            that capture the meaning and characteristics of the content they analyze. When two things are similar in meaning
 | 
						|
            or content, their digital fingerprints will look very similar. For example, the fingerprints for 'happy' and
 | 
						|
            'joyful' would be more alike than those for 'happy' and 'sad'.
 | 
						|
        </MudJustifiedText>
 | 
						|
 | 
						|
        <MudJustifiedText Typo="Typo.body1" Class="mb-3">
 | 
						|
            This helps AI Studio understand and compare things in a way that's similar to how humans do. When you're working on
 | 
						|
            something, AI Studio can automatically identify related documents and data by comparing their digital fingerprints.
 | 
						|
            For instance, if you're writing about customer service, AI Studio can instantly find other documents in your data that
 | 
						|
            discuss similar topics or experiences, even if they use different words.
 | 
						|
        </MudJustifiedText>
 | 
						|
        <MudTable Items="@this.SettingsManager.ConfigurationData.EmbeddingProviders" Hover="@true" Class="border-dashed border rounded-lg">
 | 
						|
            <ColGroup>
 | 
						|
                <col style="width: 3em;"/>
 | 
						|
                <col style="width: 12em;"/>
 | 
						|
                <col style="width: 12em;"/>
 | 
						|
                <col/>
 | 
						|
                <col style="width: 40em;"/>
 | 
						|
            </ColGroup>
 | 
						|
            <HeaderContent>
 | 
						|
                <MudTh>#</MudTh>
 | 
						|
                <MudTh>Name</MudTh>
 | 
						|
                <MudTh>Provider</MudTh>
 | 
						|
                <MudTh>Model</MudTh>
 | 
						|
                <MudTh>Actions</MudTh>
 | 
						|
            </HeaderContent>
 | 
						|
            <RowTemplate>
 | 
						|
                <MudTd>@context.Num</MudTd>
 | 
						|
                <MudTd>@context.Name</MudTd>
 | 
						|
                <MudTd>@context.UsedLLMProvider</MudTd>
 | 
						|
                <MudTd>@this.GetEmbeddingProviderModelName(context)</MudTd>
 | 
						|
                
 | 
						|
                <MudTd>
 | 
						|
                    <MudStack Row="true" Class="mb-2 mt-2" Wrap="Wrap.Wrap">
 | 
						|
                        <MudButton Variant="Variant.Filled" Color="Color.Info" StartIcon="@Icons.Material.Filled.OpenInBrowser" Href="@context.UsedLLMProvider.GetDashboardURL()" Target="_blank" Disabled="@(!context.UsedLLMProvider.HasDashboard())">
 | 
						|
                            Open Dashboard
 | 
						|
                        </MudButton>
 | 
						|
                        <MudButton Variant="Variant.Filled" Color="Color.Info" StartIcon="@Icons.Material.Filled.Edit" OnClick="() => this.EditEmbeddingProvider(context)">
 | 
						|
                            Edit
 | 
						|
                        </MudButton>
 | 
						|
                        <MudButton Variant="Variant.Filled" Color="Color.Error" StartIcon="@Icons.Material.Filled.Delete" OnClick="() => this.DeleteEmbeddingProvider(context)">
 | 
						|
                            Delete
 | 
						|
                        </MudButton>
 | 
						|
                    </MudStack>
 | 
						|
                </MudTd>
 | 
						|
            </RowTemplate>
 | 
						|
        </MudTable>
 | 
						|
 | 
						|
        @if (this.SettingsManager.ConfigurationData.EmbeddingProviders.Count == 0)
 | 
						|
        {
 | 
						|
            <MudText Typo="Typo.h6" Class="mt-3">No embeddings configured yet.</MudText>
 | 
						|
        }
 | 
						|
 | 
						|
        <MudButton Variant="Variant.Filled" Color="@Color.Primary" StartIcon="@Icons.Material.Filled.AddRoad" Class="mt-3 mb-6" OnClick="@this.AddEmbeddingProvider">
 | 
						|
            Add Embedding
 | 
						|
        </MudButton>
 | 
						|
    </ExpansionPanel>
 | 
						|
} |