HuggingFaceTextEmbeddingGenerationService 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.
HuggingFace embedding generation service.
public sealed class HuggingFaceTextEmbeddingGenerationService : Microsoft.SemanticKernel.Embeddings.IEmbeddingGenerationService<string,float>, Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService
type HuggingFaceTextEmbeddingGenerationService = class
interface ITextEmbeddingGenerationService
interface IEmbeddingGenerationService<string, single>
interface IAIService
Public NotInheritable Class HuggingFaceTextEmbeddingGenerationService
Implements IEmbeddingGenerationService(Of String, Single), ITextEmbeddingGenerationService
- Inheritance
-
HuggingFaceTextEmbeddingGenerationService
- Implements
Constructors
HuggingFaceTextEmbeddingGenerationService(String, Uri, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the HuggingFaceTextEmbeddingGenerationService class. |
HuggingFaceTextEmbeddingGenerationService(Uri, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the HuggingFaceTextEmbeddingGenerationService class. |
Properties
Attributes |
Gets the AI service attributes. |
Methods
GenerateEmbeddingsAsync(IList<String>, Kernel, CancellationToken) |
Generates an embedding from the given |
Extension Methods
GenerateEmbeddingAsync<TValue,TEmbedding>(IEmbeddingGenerationService<TValue,TEmbedding>, TValue, Kernel, CancellationToken) |
Generates an embedding from the given |
GetApiVersion(IAIService) |
Gets the API version from |
GetEndpoint(IAIService) |
Gets the endpoint from |
GetModelId(IAIService) |
Gets the model identifier from |