CommunityToolkit.VectorData.Chroma 1.0.1-preview

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

CommunityToolkit.VectorData.Chroma

Chroma provider for Microsoft.Extensions.VectorData, by the .NET Community Toolkit.

Chroma is an open-source vector database for AI applications.

The provider is built on ChromaDotNet.Client, a .NET client for Chroma and Chroma Cloud.

Quick start

  1. Run Chroma with Docker:
docker run -d --name chroma -p 8000:8000 chromadb/chroma
  1. Install the NuGet package:
dotnet add package CommunityToolkit.VectorData.Chroma

For more information, see the Microsoft.Extensions.VectorData documentation.

Limitations

  • On Chroma Cloud, a vector search returns at most 300 results, Skip included, the default quota of Chroma Cloud: beyond that, Chroma Cloud answers with a quota error.
  • Chroma does not store empty lists, so an empty array or list comes back as null.
  • Array and list properties, like the namespaces of the TextSearchStore of Semantic Kernel, need Chroma 1.5.0 or later.
  • On self-hosted Chroma 1.0.21 to 1.5.9, a vector search can miss a record after an upsert, while a get still finds it. It is KD-49 in the compatibility notes of ChromaDotNet.Client. The environment variable RAYON_NUM_THREADS=1 on the server makes it much rarer. In the client, ChromaUpsertStrategy.SkipUnchangedEmbeddings writes a record whose vector does not change without its vector, so that write does not touch the vector index.
  • On Chroma Cloud, a record has at most 32 metadata keys, and a null value counts as one. The provider writes every data property, null or not. A write with null values that would take a record beyond 32 keys throws an ArgumentException. With WithReadsBeyondKeyQuota(), the client reads such a record first and sends only the null values of the keys it has. Two writes of the same record at the same time can then mix.
  • On Chroma Cloud, a metadata key has at most 36 bytes in UTF-8. With a data property whose storage name is longer, the collection is created, but every upsert throws a VectorStoreException with the quota error of Chroma Cloud.
  • On Chroma Cloud, Contains on the full-text property throws an ArgumentException for a text of fewer than 3 characters. Once Chroma Cloud has indexed the records, such a filter would find no record, and its negation every record.

The connection string does not set WithUpsertStrategy and WithReadsBeyondKeyQuota(). Set them on the options of a ChromaClient created in code, and pass it to the vector store:

var options = new ChromaConfigurationOptions("http://localhost:8000")
    .WithUpsertStrategy(ChromaUpsertStrategy.SkipUnchangedEmbeddings);

builder.Services.AddChromaVectorStore(_ => new ChromaClient(options));
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.0.1-preview 141 10/14/2026
1.0.0-preview 79 10/9/2026