mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:27:21 +00:00
15 lines
776 B
C#
15 lines
776 B
C#
using AIStudio.Chat;
|
|||
|
|
|
||
|
|
namespace AIStudio.Tools.RAG;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// What an augmentation process did: the chat thread it augmented, and what it handed to the AI.
|
||
|
|
/// </summary>
|
||
|
|
/// <remarks>
|
||
|
|
/// The contexts the AI received can be fewer than the ones retrieved, e.g., when a check of which
|
||
|
|
/// passages fit the question left some out. Whoever lists the sources and passages of the answer
|
||
|
|
/// takes them from here, so the user sees what the AI read and nothing else.
|
||
|
|
/// </remarks>
|
||
|
|
/// <param name="ChatThread">The augmented chat thread.</param>
|
||
|
|
/// <param name="UsedContexts">The retrieval contexts handed to the AI, in the order it received them.</param>
|
||
|
|
public sealed record AugmentationResult(ChatThread ChatThread, IReadOnlyList<PreparedRetrievalContext> UsedContexts);
|