mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 17:07:21 +00:00
Added a way to read what the AI received from your sources (#1100)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
e0d8e18f34
commit
cbc4ce5413
229 files changed
+12739
-1269
No files matched your search
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
Reference in new issue
Block a user