Starlings.Models.E5.Extensions.AI 0.1.0-preview.6

This is a prerelease version of Starlings.Models.E5.Extensions.AI.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Starlings.Models.E5.Extensions.AI --version 0.1.0-preview.6
                    
NuGet\Install-Package Starlings.Models.E5.Extensions.AI -Version 0.1.0-preview.6
                    
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="Starlings.Models.E5.Extensions.AI" Version="0.1.0-preview.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Starlings.Models.E5.Extensions.AI" Version="0.1.0-preview.6" />
                    
Directory.Packages.props
<PackageReference Include="Starlings.Models.E5.Extensions.AI" />
                    
Project file
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 Starlings.Models.E5.Extensions.AI --version 0.1.0-preview.6
                    
#r "nuget: Starlings.Models.E5.Extensions.AI, 0.1.0-preview.6"
                    
#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 Starlings.Models.E5.Extensions.AI@0.1.0-preview.6
                    
#: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=Starlings.Models.E5.Extensions.AI&version=0.1.0-preview.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Starlings.Models.E5.Extensions.AI&version=0.1.0-preview.6&prerelease
                    
Install as a Cake Tool

Starlings.Models.E5.Extensions.AI

Preview. Microsoft.Extensions.AI IEmbeddingGenerator<string, Embedding<float>> over the multilingual-e5-small embedder in Starlings.Models.E5: the same tokenizer, encoder and numbers, usable with Microsoft.Extensions.AI middleware and dependency injection. The API may still change.

Install

dotnet add package Starlings.Models.E5.Extensions.AI --prerelease
dotnet add package Microsoft.ML.OnnxRuntime --version 1.30.0          # or Microsoft.ML.OnnxRuntime.Gpu.Linux; exactly one

Use

using Starlings.Models.E5;
using Starlings.Models.E5.Extensions.AI;
using Microsoft.Extensions.AI;

await E5ModelAssets.DownloadAsync();                 // explicit acquisition, once
E5ModelFiles files = E5ModelAssets.OpenLocal();      // offline

using IEmbeddingGenerator<string, Embedding<float>> generator = E5EmbeddingGenerator.Create(files,
    new E5EmbeddingGeneratorOptions { InputType = E5InputType.Query });   // adds "query: "; the default adds nothing
var embeddings = await generator.GenerateAsync(["how much protein should a female eat"]);

// Or with DI: services.AddE5EmbeddingGenerator(files);
  • Prefixes are explicit: E5InputType.Query or Passage per generator, or per request with AdditionalProperties["e5_input_type"].
  • GenerateAsync runs synchronously on the calling thread and returns a completed task.
  • Unsupported options (Dimensions other than 384, another ModelId, unknown additional properties) fail with NotSupportedException instead of being ignored.

Status: Linux x64 CPU experimental; over a CUDA session untested. See the release notes.

Product 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Starlings.Models.E5.Extensions.AI:

Package Downloads
Starlings.Models.E5.Browser

intfloat/multilingual-e5-small (revision 614241f6) sentence embeddings in the browser (Blazor WebAssembly and other .NET browser-wasm apps) on onnxruntime-web: the owned tokenizer (Starlings.Tokenizers) and the same padding, mean pooling and L2 normalization code as Starlings.Models.E5, async, plus a Microsoft.Extensions.AI IEmbeddingGenerator. Pins the fp32 graph (from the Hub) and the int8-embed variant (host it yourself) by SHA-256. Profiles multilingual-e5-small/onnx-fp32-wasm, onnx-int8embed-wasm (and -webgpu with Starlings.Runtime.OnnxWeb.WebGpu). WebAssembly has no support badge. Maturity is per model profile (Stable, Preview or Experimental): see the README, generated from the model registry.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 115 11/3/2026
0.4.0 100 11/3/2026
0.3.0 136 10/19/2026
0.2.0 155 10/17/2026
0.1.0-preview.6 118 10/14/2026