mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 04:18:00 +00:00
Show the local RAG index on the information page
This commit is contained in:
5 files changed
+224
-54
No files matched your search
@@ -22,25 +22,40 @@
|
||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.Build" Text="@this.VersionRust"/>
|
||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.Storage">
|
||||
<MudText Typo="Typo.body1">
|
||||
@this.VersionVectorStore
|
||||
@this.DatabaseHeaderText(this.vectorStoreSection)
|
||||
</MudText>
|
||||
<MudCollapse Expanded="@this.showVectorStoreDetails">
|
||||
<MudCollapse Expanded="@this.vectorStoreSection.ShowDetails">
|
||||
<MudText Typo="Typo.body1" Class="mt-2 mb-2">
|
||||
@foreach (var item in this.vectorStoreDisplayInfo)
|
||||
@foreach (var item in this.BuildDatabaseInfoItems(this.vectorStoreSection))
|
||||
{
|
||||
<div style="display: flex; align-items: center; gap: 8px;">
|
||||
<MudIcon Icon="@Icons.Material.Filled.ArrowRightAlt"/>
|
||||
<span>@item.Label: @item.Value</span>
|
||||
<MudCopyClipboardButton TooltipMessage="@(T("Copies the following to the clipboard")+": "+item.Value)" StringContent=@item.Value/>
|
||||
</div>
|
||||
<ConfigInfoRow Item="@item"/>
|
||||
}
|
||||
</MudText>
|
||||
</MudCollapse>
|
||||
<MudButton StartIcon="@(this.showVectorStoreDetails ? Icons.Material.Filled.ExpandLess : Icons.Material.Filled.ExpandMore)"
|
||||
<MudButton StartIcon="@(this.vectorStoreSection.ShowDetails ? Icons.Material.Filled.ExpandLess : Icons.Material.Filled.ExpandMore)"
|
||||
Size="Size.Small"
|
||||
Variant="Variant.Text"
|
||||
OnClick="@this.ToggleVectorStoreDetails">
|
||||
@(this.showVectorStoreDetails ? T("Hide Details") : T("Show Details"))
|
||||
OnClick="@(() => this.ToggleDatabaseDetails(this.vectorStoreSection))">
|
||||
@(this.vectorStoreSection.ShowDetails ? T("Hide Details") : T("Show Details"))
|
||||
</MudButton>
|
||||
</MudListItem>
|
||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.ManageSearch">
|
||||
<MudText Typo="Typo.body1">
|
||||
@this.DatabaseHeaderText(this.indexStoreSection)
|
||||
</MudText>
|
||||
<MudCollapse Expanded="@this.indexStoreSection.ShowDetails">
|
||||
<MudText Typo="Typo.body1" Class="mt-2 mb-2">
|
||||
@foreach (var item in this.BuildDatabaseInfoItems(this.indexStoreSection))
|
||||
{
|
||||
<ConfigInfoRow Item="@item"/>
|
||||
}
|
||||
</MudText>
|
||||
</MudCollapse>
|
||||
<MudButton StartIcon="@(this.indexStoreSection.ShowDetails ? Icons.Material.Filled.ExpandLess : Icons.Material.Filled.ExpandMore)"
|
||||
Size="Size.Small"
|
||||
Variant="Variant.Text"
|
||||
OnClick="@(() => this.ToggleDatabaseDetails(this.indexStoreSection))">
|
||||
@(this.indexStoreSection.ShowDetails ? T("Hide Details") : T("Show Details"))
|
||||
</MudButton>
|
||||
</MudListItem>
|
||||
<MudListItem T="string" Icon="@Icons.Material.Outlined.DocumentScanner" Text="@this.VersionPdfium"/>
|
||||
|
||||
Reference in new issue
Block a user