HuggingFaceTextEmbeddingGenerationService Constructors
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.
Overloads
HuggingFaceTextEmbeddingGenerationService(Uri, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the HuggingFaceTextEmbeddingGenerationService class. |
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.
public HuggingFaceTextEmbeddingGenerationService (Uri endpoint, string? apiKey = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextEmbeddingGenerationService : Uri * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextEmbeddingGenerationService
Public Sub New (endpoint As Uri, Optional apiKey As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- endpoint
- Uri
The endpoint uri including the port where HuggingFace server is hosted
- apiKey
- String
Optional API key for accessing the HuggingFace service.
- httpClient
- HttpClient
Optional HTTP client to be used for communication with the HuggingFace API.
- loggerFactory
- ILoggerFactory
Optional logger factory to be used for logging.
Applies to
HuggingFaceTextEmbeddingGenerationService(String, Uri, String, HttpClient, ILoggerFactory)
Initializes a new instance of the HuggingFaceTextEmbeddingGenerationService class.
public HuggingFaceTextEmbeddingGenerationService (string model, Uri? endpoint = default, string? apiKey = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextEmbeddingGenerationService : string * Uri * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextEmbeddingGenerationService
Public Sub New (model As String, Optional endpoint As Uri = Nothing, Optional apiKey As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- model
- String
The HuggingFace model for the text generation service.
- endpoint
- Uri
The endpoint uri including the port where HuggingFace server is hosted
- apiKey
- String
Optional API key for accessing the HuggingFace service.
- httpClient
- HttpClient
Optional HTTP client to be used for communication with the HuggingFace API.
- loggerFactory
- ILoggerFactory
Optional logger factory to be used for logging.