Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SemanticSimilarityChunker Class
Definition
- Namespace:
- Microsoft.Extensions.DataIngestion.Chunkers
- Assembly:
- Microsoft.Extensions.DataIngestion.dll
- Package:
- Microsoft.Extensions.DataIngestion v10.7.0-preview.1.26309.5
- Source:
- SemanticSimilarityChunker.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Splits a IngestionDocument into chunks based on semantic similarity between its elements based on cosine distance of their embeddings.
public ref class SemanticSimilarityChunker sealed : Microsoft::Extensions::DataIngestion::IngestionChunker<System::String ^>
public sealed class SemanticSimilarityChunker : Microsoft.Extensions.DataIngestion.IngestionChunker<string>
type SemanticSimilarityChunker = class
inherit IngestionChunker<string>
Public NotInheritable Class SemanticSimilarityChunker
Inherits IngestionChunker(Of String)
- Inheritance
Constructors
| Name | Description |
|---|---|
| SemanticSimilarityChunker(IEmbeddingGenerator<String,Embedding<Single>>, IngestionChunkerOptions, Nullable<Single>) |
Initializes a new instance of the SemanticSimilarityChunker class. |
Methods
| Name | Description |
|---|---|
| ProcessAsync(IngestionDocument, CancellationToken) |
Splits a document into chunks asynchronously. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
