From 1b100f6c7ed197885be4380b102444164bbe8cde Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 17 Feb 2025 22:49:27 +0100 Subject: [PATCH] Added the common augmentation interface --- .../Tools/RAG/IAugmentationProcess.cs | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/MindWork AI Studio/Tools/RAG/IAugmentationProcess.cs diff --git a/app/MindWork AI Studio/Tools/RAG/IAugmentationProcess.cs b/app/MindWork AI Studio/Tools/RAG/IAugmentationProcess.cs new file mode 100644 index 00000000..81bb6da7 --- /dev/null +++ b/app/MindWork AI Studio/Tools/RAG/IAugmentationProcess.cs @@ -0,0 +1,33 @@ +using AIStudio.Chat; +using AIStudio.Provider; + +namespace AIStudio.Tools.RAG; + +public interface IAugmentationProcess +{ + /// + /// How is the augmentation process called? + /// + public string TechnicalName { get; } + + /// + /// How is the augmentation process called in the UI? + /// + public string UIName { get; } + + /// + /// How works the augmentation process? + /// + public string Description { get; } + + /// + /// Starts the augmentation process. + /// + /// The LLM provider. Gets used, e.g., for automatic retrieval context validation. + /// The last prompt that was issued by the user. + /// The chat thread. + /// The retrieval contexts that were issued by the retrieval process. + /// The cancellation token. + /// The altered chat thread. + public Task ProcessAsync(IProvider provider, IContent lastPrompt, ChatThread chatThread, IReadOnlyList retrievalContexts, CancellationToken token = default); +} \ No newline at end of file