Contoso.AI.TextEmbedder 0.1.6-beta

This is a prerelease version of Contoso.AI.TextEmbedder.
dotnet add package Contoso.AI.TextEmbedder --version 0.1.6-beta
                    
NuGet\Install-Package Contoso.AI.TextEmbedder -Version 0.1.6-beta
                    
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="Contoso.AI.TextEmbedder" Version="0.1.6-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Contoso.AI.TextEmbedder" Version="0.1.6-beta" />
                    
Directory.Packages.props
<PackageReference Include="Contoso.AI.TextEmbedder" />
                    
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 Contoso.AI.TextEmbedder --version 0.1.6-beta
                    
#r "nuget: Contoso.AI.TextEmbedder, 0.1.6-beta"
                    
#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 Contoso.AI.TextEmbedder@0.1.6-beta
                    
#: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=Contoso.AI.TextEmbedder&version=0.1.6-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Contoso.AI.TextEmbedder&version=0.1.6-beta&prerelease
                    
Install as a Cake Tool

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 implement
  • Embedding - 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 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. 
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 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