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,64 @@
|
||||
using AIStudio.Components;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Assistants.ModelComparison;
|
||||
|
||||
/// <summary>
|
||||
/// Two columns to compare, with the button of each below it and the tie between them: the answers of a run in the
|
||||
/// mode Answer Variance, and the chats of a task in the mode Everyday Tasks.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Both modes share this layout, so that the user votes the same way in both: the button which chooses a column stands
|
||||
/// below it, in a narrow window as well, where the second column moves below the first one.
|
||||
/// </remarks>
|
||||
public partial class ModelComparisonVoteColumns : MSGComponentBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets what the left column shows, e.g., the first answer.
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public RenderFragment ColumnA { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what the right column shows, e.g., the second answer.
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public RenderFragment ColumnB { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the question above the buttons, or an empty text without one.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string Heading { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the text of the button which chooses the left column.
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public string ALabel { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the text of the button which chooses the right column.
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public string BLabel { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the text of the button which finds both columns equally good.
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public string TieLabel { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the buttons are disabled, e.g., while the vote is saved.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool Disabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what happens when the user votes: COLUMN_A for the left column, COLUMN_B for the right one.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<ModelComparisonVote> Vote { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user