mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 11:33:47 +00:00
Added a common augmentation interface & default implementation (#288)
This commit is contained in:
1 parent
f01cf498e2
commit
96e6372fcd
19 files changed
+249
-62
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Tools.RAG;
|
||||
|
||||
public interface IAugmentationProcess
|
||||
{
|
||||
/// <summary>
|
||||
/// How is the augmentation process called?
|
||||
/// </summary>
|
||||
public string TechnicalName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// How is the augmentation process called in the UI?
|
||||
/// </summary>
|
||||
public string UIName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// How works the augmentation process?
|
||||
/// </summary>
|
||||
public string Description { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Starts the augmentation process.
|
||||
/// </summary>
|
||||
/// <param name="provider">The LLM provider. Gets used, e.g., for automatic retrieval context validation.</param>
|
||||
/// <param name="lastPrompt">The last prompt that was issued by the user.</param>
|
||||
/// <param name="chatThread">The chat thread.</param>
|
||||
/// <param name="retrievalContexts">The retrieval contexts that were issued by the retrieval process.</param>
|
||||
/// <param name="token">The cancellation token.</param>
|
||||
/// <returns>The altered chat thread.</returns>
|
||||
public Task<ChatThread> ProcessAsync(IProvider provider, IContent lastPrompt, ChatThread chatThread, IReadOnlyList<IRetrievalContext> retrievalContexts, CancellationToken token = default);
|
||||
}
|
||||
Reference in new issue
Block a user