Share via


BertOnnxTextEmbeddingGenerationService.Create Method

Definition

Overloads

Create(Stream, Stream, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

Create(String, String, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

Create(Stream, Stream, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

public static Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxTextEmbeddingGenerationService Create (System.IO.Stream onnxModelStream, System.IO.Stream vocabStream, Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxOptions? options = default);
static member Create : System.IO.Stream * System.IO.Stream * Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxOptions -> Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxTextEmbeddingGenerationService
Public Shared Function Create (onnxModelStream As Stream, vocabStream As Stream, Optional options As BertOnnxOptions = Nothing) As BertOnnxTextEmbeddingGenerationService

Parameters

onnxModelStream
Stream

Stream containing the ONNX model.

vocabStream
Stream

Stream containing the vocab file.

options
BertOnnxOptions

Options for the configuration of the model and service.

Returns

Applies to

Create(String, String, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

public static Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxTextEmbeddingGenerationService Create (string onnxModelPath, string vocabPath, Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxOptions? options = default);
static member Create : string * string * Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxOptions -> Microsoft.SemanticKernel.Connectors.Onnx.BertOnnxTextEmbeddingGenerationService
Public Shared Function Create (onnxModelPath As String, vocabPath As String, Optional options As BertOnnxOptions = Nothing) As BertOnnxTextEmbeddingGenerationService

Parameters

onnxModelPath
String

The path to the ONNX model file.

vocabPath
String

The path to the vocab file.

options
BertOnnxOptions

Options for the configuration of the model and service.

Returns

Applies to