Skip to content

Add Chroma hosting and client integrations #2218

Closed

Description

@Laurianti

Aspire issue link

N/A

Overview

Hosting and client integrations for Chroma, picking up #1132.

  • CommunityToolkit.Aspire.Hosting.Chroma: AddChroma, WithDataVolume, WithDataBindMount. Image chromadb/chroma:1.5.9, health check on /api/v2/heartbeat.
  • CommunityToolkit.Aspire.Chroma: AddChromaClient, AddKeyedChromaClient, on ChromaDotNet.Client.

#1132 used ChromaDB.Client 1.0.0, which only speaks the v1 API; Chroma 1.x removed it.

Usage example

// AppHost
var chroma = builder.AddChroma("chroma").WithDataVolume();
builder.AddProject<Projects.ApiService>("api").WithReference(chroma).WaitFor(chroma);

// Service
builder.AddChromaClient("chroma");

Additional context

The commits of #1132 by @ali-Hamza817 are kept; the changes go on top.

Help us help you

Yes, I'd like to be assigned to work on this item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions