Class RagUpdatePlugin
Refresh the RAG index by sending fresh content to the RAG system.
Inheritance
RagUpdatePlugin
Assembly: SoBatchProcessing.dll
Syntax
[BatchTask]
public class RagUpdatePlugin : BatchTaskBase, IBatchTask
Constructors
RagUpdatePlugin(IBatchData, IBatchTaskFactory, IBatchServiceConfiguration, ISelectionAgent, IOptions<RagAIConfiguration>, ILogger<RagUpdatePlugin>, IAIAgent)
Refresh the RAG index by sending fresh content to the RAG system.
Declaration
public RagUpdatePlugin(IBatchData batchData, IBatchTaskFactory taskFactory, ConfigFile.IBatchServiceConfiguration batchServiceConfiguration, ISelectionAgent selectionAgent, IOptions<RagAIConfiguration> ragAIConfiguration, ILogger<RagUpdatePlugin> logger, IAIAgent aiAgent)
Parameters
Fields
PluginName
Refresh the RAG index by sending fresh content to the RAG system.
Declaration
public const string PluginName = "RagUpdatePlugin"
Field Value
Methods
RunAsync(string, string, CancellationToken)
Re-index content in the RAG system.
Declaration
protected override Task<bool> RunAsync(string name, string context, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
RunNamespaceIndexing(BatchTaskInfo, string, CancellationToken)
Re-index Document + Ticket Selections content in the RAG system.
Declaration
protected Task RunNamespaceIndexing(BatchTaskInfo bti, string indexRunTag, CancellationToken cancellationToken = default)
Parameters
Returns
RunReplyTemplatesIndexing(BatchTaskInfo, string, CancellationToken)
Re-index Reply Templates and FAQ content in the RAG system.
Declaration
protected Task RunReplyTemplatesIndexing(BatchTaskInfo bti, string indexRunTag, CancellationToken cancellationToken = default)
Parameters
Returns
RunWebSitesIndexing(BatchTaskInfo, string, CancellationToken)
Re-index Web content in the RAG system.
Declaration
protected Task RunWebSitesIndexing(BatchTaskInfo bti, string indexRunTag, CancellationToken cancellationToken = default)
Parameters
Returns
Implements
Extension Methods