mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 18:49:40 +00:00
Refactored the RAG process (#287)
This commit is contained in:
1 parent
77d427610b
commit
f01cf498e2
7 files changed
+349
-194
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Tools.RAG;
|
||||
|
||||
public interface IDataSourceSelectionProcess
|
||||
{
|
||||
/// <summary>
|
||||
/// How is the RAG process called?
|
||||
/// </summary>
|
||||
public string TechnicalName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// How is the RAG process called in the UI?
|
||||
/// </summary>
|
||||
public string UIName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// How works the RAG process?
|
||||
/// </summary>
|
||||
public string Description { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Starts the data source selection process.
|
||||
/// </summary>
|
||||
/// <param name="provider">The LLM provider. Used as default for data selection agents.</param>
|
||||
/// <param name="lastPrompt">The last prompt that was issued by the user.</param>
|
||||
/// <param name="chatThread">The chat thread.</param>
|
||||
/// <param name="dataSources">The allowed data sources yielded by the data source service.</param>
|
||||
/// <param name="token">The cancellation token.</param>
|
||||
/// <returns></returns>
|
||||
public Task<DataSelectionResult> SelectDataSourcesAsync(IProvider provider, IContent lastPrompt, ChatThread chatThread, AllowedSelectedDataSources dataSources, CancellationToken token = default);
|
||||
}
|
||||
Reference in new issue
Block a user