Class RagUpdatePlugin
Refresh the RAG index by sending fresh content to the RAG system.
Implements
Inherited Members
Namespace: SuperOffice.CRM.BatchProcessing.Plugins
Assembly: SoBatchProcessing.dll
Syntax
[BatchTask("RagUpdatePlugin")]
public class RagUpdatePlugin : BatchTaskBase, IBatchTask
Constructors
RagUpdatePlugin(IBatchData, IBatchServiceConfiguration, ISelectionAgent, IOptions<RagAIConfiguration>, ILogger<RagUpdatePlugin>)
Refresh the RAG index by sending fresh content to the RAG system.
Declaration
public RagUpdatePlugin(IBatchData batchData, ConfigFile.IBatchServiceConfiguration batchServiceConfiguration, ISelectionAgent selectionAgent, IOptions<RagAIConfiguration> ragAIConfiguration, ILogger<RagUpdatePlugin> logger)
Parameters
Type | Name | Description |
---|---|---|
IBatchData | batchData | |
ConfigFile.IBatchServiceConfiguration | batchServiceConfiguration | |
ISelectionAgent | selectionAgent | |
IOptions<RagAIConfiguration> | ragAIConfiguration | |
ILogger<RagUpdatePlugin> | logger |
Fields
PluginName
Refresh the RAG index by sending fresh content to the RAG system.
Declaration
public const string PluginName = "RagUpdatePlugin"
Field Value
Type | Description |
---|---|
string |
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
Type | Name | Description |
---|---|---|
string | name | |
string | context | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> |