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
<PackageReference Include="ChromaDotNet.Aspire.Client" Version="0.2.7" />
<PackageVersion Include="ChromaDotNet.Aspire.Client" Version="0.2.7" />
<PackageReference Include="ChromaDotNet.Aspire.Client" />
paket add ChromaDotNet.Aspire.Client --version 0.2.7
#r "nuget: ChromaDotNet.Aspire.Client, 0.2.7"
#:package ChromaDotNet.Aspire.Client@0.2.7
#addin nuget:?package=ChromaDotNet.Aspire.Client&version=0.2.7
#tool nuget:?package=ChromaDotNet.Aspire.Client&version=0.2.7
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 | Versions 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. |
-
net10.0
- ChromaDotNet.Client.DependencyInjection (>= 2.11.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Http (>= 10.0.12)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
-
net8.0
- ChromaDotNet.Client.DependencyInjection (>= 2.11.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Http (>= 10.0.12)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
-
net9.0
- ChromaDotNet.Client.DependencyInjection (>= 2.11.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Http (>= 10.0.12)
- OpenTelemetry.Extensions.Hosting (>= 1.17.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 |
|---|---|---|
| 0.2.7 | 0 | 10/7/2026 |
