Table of Contents

Class RequestManagerService

Namespace
FoundationaLLM.Vectorization.Services
Assembly
FoundationaLLM.Vectorization.Engine.dll

Manages vectorization requests originating from a specific request source.

public class RequestManagerService : IRequestManagerService
Inheritance
RequestManagerService
Implements
Inherited Members
Extension Methods

Constructors

RequestManagerService(RequestManagerServiceSettings, Dictionary<string, IRequestSourceService>, IVectorizationStateService, IConfigurationSection?, IServiceProvider, ILoggerFactory, CancellationToken)

Initializes a new instance of the RequestManagerService class with the configuration and services required to manage vectorization requests originating from a specific request source.

public RequestManagerService(RequestManagerServiceSettings settings, Dictionary<string, IRequestSourceService> requestSourceServices, IVectorizationStateService vectorizationStateService, IConfigurationSection? stepsConfiguration, IServiceProvider serviceProvider, ILoggerFactory loggerFactory, CancellationToken cancellationToken)

Parameters

settings RequestManagerServiceSettings

The configuration settings used to initialize the instance.

requestSourceServices Dictionary<string, IRequestSourceService>

The dictionary with all the request source services registered in the vectorization platform.

vectorizationStateService IVectorizationStateService

The service providing vectorization state management.

stepsConfiguration IConfigurationSection

The IConfigurationSection object providing access to the settings.

serviceProvider IServiceProvider

The IServiceProvider implemented by the dependency injection container.

loggerFactory ILoggerFactory

The logger factory used to create loggers.

cancellationToken CancellationToken

The cancellation token that can be used to cancel the work.

Exceptions

VectorizationException

The exception thrown when the initialization of the instance fails.

Methods

Run()

Runs the vectorization requests processing cycle.

public Task Run()

Returns

Task

A Task to await the completion of the run.