Show / Hide Table of Contents

Class RagUpdatePlugin

Refresh the RAG index by sending fresh content to the RAG system.

Inheritance
object
BatchTaskBase
RagUpdatePlugin
Implements
IBatchTask
Inherited Members
BatchTaskBase._isEnding
BatchTaskBase._statusUpdateInterval
BatchTaskBase._batchData
BatchTaskBase._internalCompletionSource
BatchTaskBase.RunTaskAsync(BatchTaskInfo, string, BatchTaskStatusChangedAsync, CancellationToken)
BatchTaskBase.GetTaskInfoAsync(CancellationToken)
BatchTaskBase.EndTaskAsync(CancellationToken)
BatchTaskBase.ProgressCallbackAsync(int, int, CancellationToken)
BatchTaskBase.SetResult(string)
BatchTaskBase.SaveStreamToBlobAsync(Stream, string, string, string, CancellationToken)
BatchTaskBase.EnsureUdefsAsync()
BatchTaskBase.Id
BatchTaskBase.BatchTaskInfo
BatchTaskBase.Name
BatchTaskBase.Context
BatchTaskBase.Result
BatchTaskBase.State
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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>
Overrides
BatchTaskBase.RunAsync(string, string, CancellationToken)

Implements

IBatchTask

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top