SemanticRouter.Embeddings.Onnx
0.6.1
dotnet add package SemanticRouter.Embeddings.Onnx --version 0.6.1
NuGet\Install-Package SemanticRouter.Embeddings.Onnx -Version 0.6.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SemanticRouter.Embeddings.Onnx" Version="0.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SemanticRouter.Embeddings.Onnx" Version="0.6.1" />
<PackageReference Include="SemanticRouter.Embeddings.Onnx" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SemanticRouter.Embeddings.Onnx --version 0.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SemanticRouter.Embeddings.Onnx, 0.6.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SemanticRouter.Embeddings.Onnx@0.6.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SemanticRouter.Embeddings.Onnx&version=0.6.1
#tool nuget:?package=SemanticRouter.Embeddings.Onnx&version=0.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SemanticRouter.Embeddings.Onnx
In-process sentence embeddings for SemanticRouter.NET with ONNX Runtime, so prompts are routed with no embedding server running. A small model (all-MiniLM-L6-v2 by default, or bge-small-en-v1.5) is downloaded and checksum-verified on first use, or loaded from a directory of your own. ONNX Runtime's telemetry is turned off.
dotnet add package SemanticRouter.Embeddings.Onnx
builder.Services
.AddSemanticPromptRouting(builder.Configuration.GetSection("SemanticRouter"))
.UseOnnxEmbeddings(); // or .AddOnnxEmbeddings() to let configuration or the dashboard choose
- Configuration reference (
Embeddings:Model,ModelPath,Pooling) - Network traffic (the model download, and offline mode)
- Changelog
MIT licence. The packages are versioned together and depend on each other exactly: update all the SemanticRouter packages an application uses at once.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.ML.OnnxRuntime (>= 1.31.0)
- Microsoft.ML.Tokenizers (>= 2.0.1)
- SemanticRouter.AspNetCore (= 0.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.