ChromaDotNet.Aspire.Client 0.2.7

Prefix Reserved
dotnet add package ChromaDotNet.Aspire.Client --version 0.2.7
                    
NuGet\Install-Package ChromaDotNet.Aspire.Client -Version 0.2.7
                    
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="ChromaDotNet.Aspire.Client" Version="0.2.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ChromaDotNet.Aspire.Client" Version="0.2.7" />
                    
Directory.Packages.props
<PackageReference Include="ChromaDotNet.Aspire.Client" />
                    
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 ChromaDotNet.Aspire.Client --version 0.2.7
                    
#r "nuget: ChromaDotNet.Aspire.Client, 0.2.7"
                    
#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 ChromaDotNet.Aspire.Client@0.2.7
                    
#: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=ChromaDotNet.Aspire.Client&version=0.2.7
                    
Install as a Cake Addin
#tool nuget:?package=ChromaDotNet.Aspire.Client&version=0.2.7
                    
Install as a Cake Tool

ChromaDotNet

ChromaDotNet.Aspire.Client

Registers a ChromaClient of ChromaDotNet.Client in an Aspire service, with a health check, traces and metrics.

Website: chromadotnet.org

dotnet add package ChromaDotNet.Aspire.Client
using ChromaDB.Client;

builder.AddChromaClient("chroma");

app.MapGet("/search", async (ChromaClient chroma) =>
{
    var collection = await chroma.GetOrCreateCollectionAsync("movies");
    return await chroma.GetCollectionClient(collection)
        .QueryAsync(new ReadOnlyMemory<float>([0.1f, 0.2f, 0.3f]), nResults: 1);
});

The connection string is the address of the server, like http://localhost:8000 or Endpoint=http://localhost:8000. For Chroma Cloud it also takes the token, the tenant and the database: Endpoint=https://api.trychroma.com;Token=<API key>;Tenant=<tenant>;Database=<database>, with the token sent in the X-Chroma-Token header; in the AppHost, builder.AddConnectionString("chroma") passes it to the services that reference it. The settings are read from Aspire:Chroma:Client (Endpoint, Token, Tenant, Database, DisableHealthChecks, HealthCheckTimeout in milliseconds, DisableTracing, DisableMetrics): the values in the connection string win over them, and the settings given in code, with the configureSettings argument, win over both. The health check is named Chroma. AddKeyedChromaClient registers a keyed client, with its settings in Aspire:Chroma:Client:{name} and the health check Chroma_{name}.

This is the Chroma client integration proposed to the Aspire Community Toolkit (CommunityToolkit/Aspire#2219), published by ChromaDotNet until the toolkit ships it as CommunityToolkit.Aspire.Chroma. The API and namespaces are the same, so moving to that package only changes the package reference. Community project, not affiliated with the .NET Foundation, the Aspire Community Toolkit or Chroma.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.2.7 0 10/7/2026