Class ExtractionHandler
- Namespace
- FoundationaLLM.Vectorization.Handlers
- Assembly
- FoundationaLLM.Vectorization.Engine.dll
Handles the extraction stage of the vectorization pipeline.
public class ExtractionHandler : VectorizationStepHandlerBase, IVectorizationStepHandler
- Inheritance
-
ExtractionHandler
- Implements
- Inherited Members
- Extension Methods
Constructors
ExtractionHandler(string, Dictionary<string, string>, IConfigurationSection?, IVectorizationStateService, IServiceProvider, ILoggerFactory)
Handles the extraction stage of the vectorization pipeline.
public ExtractionHandler(string messageId, Dictionary<string, string> parameters, IConfigurationSection? stepsConfiguration, IVectorizationStateService stateService, IServiceProvider serviceProvider, ILoggerFactory loggerFactory)
Parameters
messageId
stringThe identifier of underlying message retrieved from the request source.
parameters
Dictionary<string, string>The dictionary of named parameters used to configure the handler.
stepsConfiguration
IConfigurationSectionThe app configuration section containing the configuration for vectorization pipeline steps.
stateService
IVectorizationStateServiceThe IVectorizationStateService that manages vectorization state.
serviceProvider
IServiceProviderThe IServiceProvider implemented by the dependency injection container.
loggerFactory
ILoggerFactoryThe logger factory used to create loggers for logging.
Methods
ProcessRequest(VectorizationRequest, VectorizationState, IConfigurationSection?, UnifiedUserIdentity, CancellationToken)
Processes a vectorization request. The vectorization state will be updated with the result(s) of the processing.
protected override Task<bool> ProcessRequest(VectorizationRequest request, VectorizationState state, IConfigurationSection? stepConfiguration, UnifiedUserIdentity userIdentity, CancellationToken cancellationToken)
Parameters
request
VectorizationRequestThe VectorizationRequest to be processed.
state
VectorizationStateThe VectorizationState associated with the vectorization request.
stepConfiguration
IConfigurationSectionThe IConfigurationSection providing the configuration required by the step.
userIdentity
UnifiedUserIdentityThe UnifiedUserIdentity providing information about the calling user identity.
cancellationToken
CancellationTokenThe CancellationToken that signals stopping the processing.