EmbeddingGenerationDispatcher Class
Definition
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.
Represents a supported embedding type for a vector store provider. This is an internal support type meant for use by providers only and not by applications.
public ref class EmbeddingGenerationDispatcher abstract
[System.Diagnostics.CodeAnalysis.Experimental("MEVD9001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public abstract class EmbeddingGenerationDispatcher
public abstract class EmbeddingGenerationDispatcher
[<System.Diagnostics.CodeAnalysis.Experimental("MEVD9001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type EmbeddingGenerationDispatcher = class
type EmbeddingGenerationDispatcher = class
Public MustInherit Class EmbeddingGenerationDispatcher
- Inheritance
-
EmbeddingGenerationDispatcher
- Derived
- Attributes
Remarks
Each instance encapsulates both build-time embedding type resolution and runtime embedding generation for a specific Embedding subtype.
Constructors
| Name | Description |
|---|---|
| EmbeddingGenerationDispatcher() | |
Properties
| Name | Description |
|---|---|
| EmbeddingType |
Gets the Embedding type that this instance supports. |
Methods
| Name | Description |
|---|---|
| CanGenerateEmbedding(VectorPropertyModel, IEmbeddingGenerator) |
Checks whether the given |
| Create<TEmbedding>() |
Creates a new EmbeddingGenerationDispatcher for the given |
| GenerateEmbeddingAsync(VectorPropertyModel, Object, CancellationToken) |
Generates a single embedding of this type from the given |
| GenerateEmbeddingsAsync(VectorPropertyModel, IEnumerable<Object>, CancellationToken) |
Generates embeddings of this type from the given |
| ResolveEmbeddingType(VectorPropertyModel, IEmbeddingGenerator, Type) |
Attempts to resolve the embedding type for the given |