CommunityToolkit.VectorData.Chroma
1.0.1-preview
Prefix Reserved
dotnet add package CommunityToolkit.VectorData.Chroma --version 1.0.1-preview
NuGet\Install-Package CommunityToolkit.VectorData.Chroma -Version 1.0.1-preview
<PackageReference Include="CommunityToolkit.VectorData.Chroma" Version="1.0.1-preview" />
<PackageVersion Include="CommunityToolkit.VectorData.Chroma" Version="1.0.1-preview" />
<PackageReference Include="CommunityToolkit.VectorData.Chroma" />
paket add CommunityToolkit.VectorData.Chroma --version 1.0.1-preview
#r "nuget: CommunityToolkit.VectorData.Chroma, 1.0.1-preview"
#:package CommunityToolkit.VectorData.Chroma@1.0.1-preview
#addin nuget:?package=CommunityToolkit.VectorData.Chroma&version=1.0.1-preview&prerelease
#tool nuget:?package=CommunityToolkit.VectorData.Chroma&version=1.0.1-preview&prerelease
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
- Run Chroma with Docker:
docker run -d --name chroma -p 8000:8000 chromadb/chroma
- 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,
Skipincluded, 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
TextSearchStoreof 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=1on the server makes it much rarer. In the client,ChromaUpsertStrategy.SkipUnchangedEmbeddingswrites 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. WithWithReadsBeyondKeyQuota(), 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
VectorStoreExceptionwith the quota error of Chroma Cloud. - On Chroma Cloud,
Containson the full-text property throws anArgumentExceptionfor 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 | Versions 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. |
-
.NETFramework 4.6.2
- ChromaDotNet.Client (>= 2.14.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.8.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.VectorData.Abstractions (>= 10.8.2)
- System.Linq.AsyncEnumerable (>= 10.0.10)
-
.NETStandard 2.0
- ChromaDotNet.Client (>= 2.14.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.8.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.VectorData.Abstractions (>= 10.8.2)
- System.Linq.AsyncEnumerable (>= 10.0.10)
-
net10.0
- ChromaDotNet.Client (>= 2.14.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.8.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.VectorData.Abstractions (>= 10.8.2)
-
net8.0
- ChromaDotNet.Client (>= 2.14.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.8.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.VectorData.Abstractions (>= 10.8.2)
- System.Linq.AsyncEnumerable (>= 10.0.10)
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 |