public class OnnxEmbeddingModel extends AbstractInProcessEmbeddingModel
| Constructor and Description |
|---|
OnnxEmbeddingModel(Path pathToModel) |
OnnxEmbeddingModel(String pathToModel) |
| Modifier and Type | Method and Description |
|---|---|
protected OnnxBertBiEncoder |
model() |
embedAll, estimateTokenCountpublic OnnxEmbeddingModel(Path pathToModel)
pathToModel - The path to the .onnx model file (e.g., "/home/me/model.onnx").public OnnxEmbeddingModel(String pathToModel)
pathToModel - The path to the .onnx model file (e.g., "/home/me/model.onnx").protected OnnxBertBiEncoder model()
model in class AbstractInProcessEmbeddingModelCopyright © 2023. All rights reserved.