JasperFx.Events.MicrosoftExtensionsAI
2.76.1
dotnet add package JasperFx.Events.MicrosoftExtensionsAI --version 2.76.1
NuGet\Install-Package JasperFx.Events.MicrosoftExtensionsAI -Version 2.76.1
<PackageReference Include="JasperFx.Events.MicrosoftExtensionsAI" Version="2.76.1" />
<PackageVersion Include="JasperFx.Events.MicrosoftExtensionsAI" Version="2.76.1" />
<PackageReference Include="JasperFx.Events.MicrosoftExtensionsAI" />
paket add JasperFx.Events.MicrosoftExtensionsAI --version 2.76.1
#r "nuget: JasperFx.Events.MicrosoftExtensionsAI, 2.76.1"
#:package JasperFx.Events.MicrosoftExtensionsAI@2.76.1
#addin nuget:?package=JasperFx.Events.MicrosoftExtensionsAI&version=2.76.1
#tool nuget:?package=JasperFx.Events.MicrosoftExtensionsAI&version=2.76.1
JasperFx.Events.MicrosoftExtensionsAI
Adapts a Microsoft.Extensions.AI
IEmbeddingGenerator<string, Embedding<float>> to the Critter Stack's store-neutral
IEmbeddingProvider, so one embedding model configured for OpenAI, Azure OpenAI, Ollama, ONNX or any
other M.E.AI provider drives vector search in Marten, Polecat and Fisher.
using JasperFx.Events.MicrosoftExtensionsAI;
IEmbeddingGenerator<string, Embedding<float>> generator = /* from your M.E.AI provider package */;
// Dimensions come from the generator's metadata when it publishes them...
IEmbeddingProvider provider = generator.AsEmbeddingProvider();
// ...or say them explicitly, which always wins.
IEmbeddingProvider provider = generator.AsEmbeddingProvider(dimensions: 1536);
The adapter forwards batches and enforces the provider contract before a store sees the result:
one vector per input, in input order, every vector of the declared length. It takes no vendor SDK,
only Microsoft.Extensions.AI.Abstractions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- JasperFx.Events (>= 2.76.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.9.0)
-
net9.0
- JasperFx.Events (>= 2.76.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.76.1 | 0 | 9/29/2026 |
| 2.76.0 | 0 | 9/29/2026 |
| 2.75.2 | 72 | 9/27/2026 |
| 2.75.1 | 78 | 9/27/2026 |
| 2.75.0 | 49 | 9/27/2026 |
| 2.74.0 | 112 | 9/22/2026 |
| 2.73.2 | 87 | 9/19/2026 |
| 2.73.1 | 85 | 9/17/2026 |
| 2.73.0 | 93 | 9/17/2026 |
| 2.72.0 | 192 | 9/15/2026 |
| 2.71.1 | 92 | 9/14/2026 |
| 2.71.0 | 91 | 9/14/2026 |
| 2.70.1 | 99 | 9/14/2026 |
| 2.70.0 | 93 | 9/14/2026 |
| 2.69.3 | 98 | 9/13/2026 |
| 2.69.2 | 92 | 9/13/2026 |
| 2.69.1 | 86 | 9/13/2026 |
| 2.69.0 | 85 | 9/12/2026 |
| 2.68.0 | 91 | 9/12/2026 |