mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 22:08:27 +00:00
Added the Model Comparison assistant for blind comparisons of two models (#1009)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
12f26445ba
commit
b7255694cd
221 files changed
+19989
-90
No files matched your search
@@ -0,0 +1,49 @@
|
||||
@inherits MSGComponentBase
|
||||
|
||||
@if (this.Batch is { SkipsRemainingVotes: true, IsFinished: false })
|
||||
{
|
||||
<MudPaper Outlined="true" Class="pa-4 mb-4">
|
||||
<MudProgressLinear Color="Color.Primary" Indeterminate="true" Class="mb-3"/>
|
||||
<MudText Typo="Typo.body1">
|
||||
@TA("You skipped the remaining votes. The summary follows once the remaining runs are done.")
|
||||
</MudText>
|
||||
</MudPaper>
|
||||
}
|
||||
else if (this.IsComparing && this.Batch is { CurrentEntry: null } waitingBatch)
|
||||
{
|
||||
<MudPaper Outlined="true" Class="pa-4 mb-4">
|
||||
@* The same waiting as in the chat: a bar, and lines where the answers will appear. Both columns look alike, so this says nothing about the models. *@
|
||||
<MudProgressLinear Color="Color.Primary" Indeterminate="true" Class="mb-3"/>
|
||||
|
||||
<MudText Typo="Typo.body1" Class="mb-3">
|
||||
@(waitingBatch.Entries.Count == 0 ? T("Both models are answering. This can take a while.") : T("Waiting for the next run..."))
|
||||
</MudText>
|
||||
|
||||
<MudGrid Spacing="3">
|
||||
<MudItem xs="12" md="6">
|
||||
<MudText Typo="Typo.subtitle1">
|
||||
@T("Answer A")
|
||||
</MudText>
|
||||
<MudSkeleton Width="30%" Height="42px"/>
|
||||
<MudSkeleton Width="80%"/>
|
||||
<MudSkeleton Width="100%"/>
|
||||
</MudItem>
|
||||
<MudItem xs="12" md="6">
|
||||
<MudText Typo="Typo.subtitle1">
|
||||
@T("Answer B")
|
||||
</MudText>
|
||||
<MudSkeleton Width="30%" Height="42px"/>
|
||||
<MudSkeleton Width="80%"/>
|
||||
<MudSkeleton Width="100%"/>
|
||||
</MudItem>
|
||||
</MudGrid>
|
||||
</MudPaper>
|
||||
}
|
||||
else if (this.Batch is { CurrentEntry: { } entry } currentBatch)
|
||||
{
|
||||
<ModelComparisonVoting Batch="@currentBatch" Entry="@entry" Vote="@this.Vote" SkipThisRun="@this.SkipThisRun" SkipRemainingVotes="@this.SkipRemainingVotes" NextEntry="@this.NextEntry"/>
|
||||
}
|
||||
else if (this.Batch is { IsFinished: true } finishedBatch)
|
||||
{
|
||||
<ModelComparisonBatchSummary Batch="@finishedBatch" JudgeEnabled="@this.JudgeEnabled" StartNewBatch="@this.StartNewBatch" OpenResults="@this.OpenResults"/>
|
||||
}
|
||||
Reference in new issue
Block a user