Contoso.AI.TextEmbedder
0.1.6-beta
dotnet add package Contoso.AI.TextEmbedder --version 0.1.6-beta
NuGet\Install-Package Contoso.AI.TextEmbedder -Version 0.1.6-beta
<PackageReference Include="Contoso.AI.TextEmbedder" Version="0.1.6-beta" />
<PackageVersion Include="Contoso.AI.TextEmbedder" Version="0.1.6-beta" />
<PackageReference Include="Contoso.AI.TextEmbedder" />
paket add Contoso.AI.TextEmbedder --version 0.1.6-beta
#r "nuget: Contoso.AI.TextEmbedder, 0.1.6-beta"
#:package Contoso.AI.TextEmbedder@0.1.6-beta
#addin nuget:?package=Contoso.AI.TextEmbedder&version=0.1.6-beta&prerelease
#tool nuget:?package=Contoso.AI.TextEmbedder&version=0.1.6-beta&prerelease
Contoso.AI.TextEmbedder
Base interface library for text embedding models in the Contoso.AI family. This package provides the ITextEmbedder interface and common types used by all text embedding model implementations.
Overview
This package contains:
ITextEmbedder- Interface that all embedding models implementEmbedding- Class representing an embedding vector with utility methods like cosine similarity
Usage
This is a base interface package. To use text embeddings, install a specific model implementation:
dotnet add package Contoso.AI.TextEmbedder.MiniLML6
For Model Implementers
If you're creating a new text embedding model implementation, implement the ITextEmbedder interface:
public class MyEmbedder : ITextEmbedder
{
public Embedding[] GenerateEmbeddings(params string[] texts)
{
// Implementation
}
public Task<Embedding[]> GenerateEmbeddingsAsync(IEnumerable<string> texts, CancellationToken cancellationToken = default)
{
// Implementation
}
public void Dispose()
{
// Cleanup
}
}
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows10.0.19041
- Contoso.AI.AIFeatureCore (>= 0.0.1-beta)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Contoso.AI.TextEmbedder:
| Package | Downloads |
|---|---|
|
Contoso.AI.TextEmbedder.MiniLML6
AI-powered text embedding using all-MiniLM-L6-v2 model. Converts text to 384-dimensional embeddings for semantic search and similarity tasks. Model downloads automatically at build time. Requires Windows 10 SDK 19041 or later. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.6-beta | 36 | 2/19/2026 |