JasperFx.Events.MicrosoftExtensionsAI
2.100.1
dotnet add package JasperFx.Events.MicrosoftExtensionsAI --version 2.100.1
NuGet\Install-Package JasperFx.Events.MicrosoftExtensionsAI -Version 2.100.1
<PackageReference Include="JasperFx.Events.MicrosoftExtensionsAI" Version="2.100.1" />
<PackageVersion Include="JasperFx.Events.MicrosoftExtensionsAI" Version="2.100.1" />
<PackageReference Include="JasperFx.Events.MicrosoftExtensionsAI" />
paket add JasperFx.Events.MicrosoftExtensionsAI --version 2.100.1
#r "nuget: JasperFx.Events.MicrosoftExtensionsAI, 2.100.1"
#:package JasperFx.Events.MicrosoftExtensionsAI@2.100.1
#addin nuget:?package=JasperFx.Events.MicrosoftExtensionsAI&version=2.100.1
#tool nuget:?package=JasperFx.Events.MicrosoftExtensionsAI&version=2.100.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.100.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.9.0)
-
net9.0
- JasperFx.Events (>= 2.100.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.100.1 | 49 | 11/5/2026 |
| 2.100.0 | 86 | 11/5/2026 |
| 2.99.0 | 97 | 11/2/2026 |
| 2.98.0 | 125 | 11/2/2026 |
| 2.97.0 | 185 | 10/30/2026 |
| 2.96.2 | 98 | 10/30/2026 |
| 2.96.1 | 111 | 10/28/2026 |
| 2.96.0 | 94 | 10/27/2026 |
| 2.95.1 | 112 | 10/25/2026 |
| 2.95.0 | 107 | 10/24/2026 |
| 2.94.0 | 106 | 10/23/2026 |
| 2.93.1 | 94 | 10/23/2026 |
| 2.93.0 | 105 | 10/23/2026 |
| 2.92.0 | 113 | 10/22/2026 |
| 2.91.0 | 121 | 10/19/2026 |
| 2.90.2 | 147 | 10/16/2026 |
| 2.90.1 | 124 | 10/15/2026 |
| 2.90.0 | 120 | 10/15/2026 |
| 2.89.0 | 111 | 10/15/2026 |
| 2.88.0 | 120 | 10/14/2026 |