mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 07:13:48 +00:00
14 lines
844 B
C#
14 lines
844 B
C#
using AIStudio.Chat;
|
|
using AIStudio.Provider;
|
|
using AIStudio.Tools.RAG;
|
|
|
|
namespace AIStudio.AIOperations.RetrievalContextValidation;
|
|
|
|
/// <summary>
|
|
/// The passages found for a prompt, for a model to judge whether they help with it.
|
|
/// </summary>
|
|
/// <param name="SystemPrompt">The system prompt of the chat.</param>
|
|
/// <param name="LastUserPrompt">The last prompt of the user.</param>
|
|
/// <param name="RetrievalContexts">The passages to judge, prepared for the AI and thus already filtered for prompt injections.</param>
|
|
/// <param name="RequiredConfidence">The confidence level the chat requires of every provider which reads its data.</param>
|
|
public sealed record RetrievalContextValidationRequest(string SystemPrompt, IContent LastUserPrompt, IReadOnlyList<PreparedRetrievalContext> RetrievalContexts, ConfidenceLevel RequiredConfidence); |