Table of Contents

Class VectorizationStepHandlerFactory

Namespace
FoundationaLLM.Vectorization.Handlers
Assembly
FoundationaLLM.Vectorization.Engine.dll

Implements a factory that creates vectorization step handlers.

public class VectorizationStepHandlerFactory
Inheritance
VectorizationStepHandlerFactory
Inherited Members
Extension Methods

Methods

Create(string, string, Dictionary<string, string>, IConfigurationSection?, IVectorizationStateService, IServiceProvider, ILoggerFactory)

Creates a vectorization step handler capable of handling a specified vectorization pipeline step.

public static IVectorizationStepHandler Create(string step, string messageId, Dictionary<string, string> parameters, IConfigurationSection? stepsConfiguration, IVectorizationStateService stateService, IServiceProvider serviceProvider, ILoggerFactory loggerFactory)

Parameters

step string

The identifier of the vectorization pipeline step for which the handler is created.

messageId string

The identifier of underlying message retrieved from the request source.

parameters Dictionary<string, string>

The parameters used to initialize the vectorization step handler.

stepsConfiguration IConfigurationSection

The app configuration section containing the configuration for vectorization pipeline steps.

stateService IVectorizationStateService

The IVectorizationStateService that manages vectorization state.

serviceProvider IServiceProvider

The IServiceProvider implemented by the dependency injection container.

loggerFactory ILoggerFactory

The logger factory used to create loggers.

Returns

IVectorizationStepHandler

A class implementing IVectorizationStepHandler.