Class TokenContentTextPartitioningPlugin
- Assembly
- FoundationaLLM.DataPipelinePlugins.dll
Implements the Token Content Text Partitioning plugin.
public class TokenContentTextPartitioningPlugin : PluginBase, IContentTextPartitioningPlugin
- Inheritance
-
TokenContentTextPartitioningPlugin
- Implements
- Inherited Members
- Extension Methods
Constructors
TokenContentTextPartitioningPlugin(Dictionary<string, object>, IPluginPackageManager, IPluginPackageManagerResolver, IServiceProvider)
Implements the Token Content Text Partitioning plugin.
public TokenContentTextPartitioningPlugin(Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
Parameters
pluginParameters
Dictionary<string, object>The dictionary containing the plugin parameters.
packageManager
IPluginPackageManagerThe package manager for the plugin.
packageManagerResolver
IPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProvider
IServiceProviderThe service provider of the dependency injection container.
Properties
Name
protected override string Name { get; }
Property Value
Methods
PartitionText(string, string)
Partitions the provided text into chunks.
public Task<PluginResult<List<DataPipelineContentItemContentPart>>> PartitionText(string contentItemCanonicalId, string text)
Parameters
contentItemCanonicalId
stringThe canonical identifier of the content item.
text
stringThe text to be partitioned.
Returns
- Task<PluginResult<List<DataPipelineContentItemContentPart>>>
A list of text chunks.