Class PartitionHandler
- Namespace
 - FoundationaLLM.Vectorization.Handlers
 
- Assembly
 - FoundationaLLM.Vectorization.Engine.dll
 
Handles the partitioning stage of the vectorization pipeline.
public class PartitionHandler : VectorizationStepHandlerBase, IVectorizationStepHandler
  - Inheritance
 - 
      
      
      PartitionHandler
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
PartitionHandler(string, Dictionary<string, string>, IConfigurationSection?, IVectorizationStateService, IServiceProvider, ILoggerFactory)
Handles the partitioning stage of the vectorization pipeline.
public PartitionHandler(string messageId, Dictionary<string, string> parameters, IConfigurationSection? stepsConfiguration, IVectorizationStateService stateService, IServiceProvider serviceProvider, ILoggerFactory loggerFactory)
  Parameters
messageIdstringThe identifier of underlying message retrieved from the request source.
parametersDictionary<string, string>The dictionary of named parameters used to configure the handler.
stepsConfigurationIConfigurationSectionThe app configuration section containing the configuration for vectorization pipeline steps.
stateServiceIVectorizationStateServiceThe IVectorizationStateService that manages vectorization state.
serviceProviderIServiceProviderThe IServiceProvider implemented by the dependency injection container.
loggerFactoryILoggerFactoryThe 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
requestVectorizationRequestThe VectorizationRequest to be processed.
stateVectorizationStateThe VectorizationState associated with the vectorization request.
stepConfigurationIConfigurationSectionThe IConfigurationSection providing the configuration required by the step.
userIdentityUnifiedUserIdentityThe UnifiedUserIdentity providing information about the calling user identity.
cancellationTokenCancellationTokenThe CancellationToken that signals stopping the processing.