ChromaDB.Client 1.0.0

Prefix Reserved
Suggested Alternatives

ChromaDotNet.Client

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ChromaDB.Client --version 1.0.0
                    
NuGet\Install-Package ChromaDB.Client -Version 1.0.0
                    
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="ChromaDB.Client" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ChromaDB.Client" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ChromaDB.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 ChromaDB.Client --version 1.0.0
                    
#r "nuget: ChromaDB.Client, 1.0.0"
                    
#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 ChromaDB.Client@1.0.0
                    
#: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=ChromaDB.Client&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ChromaDB.Client&version=1.0.0
                    
Install as a Cake Tool

ChromaDB.Client

ChromaDB.Client is a C# cross-platform library for communication with Chroma vector database. Chroma is the AI-native open-source vector database. Chroma makes it easy to build LLM apps by making knowledge, facts, and skills pluggable for LLMs.

With ChromaDB.Client, you can easily connect to a Chroma instance, create and manage collections, perform CRUD operations on the data in the collections, and execute other available operations such as nearest neighbor search and filtering.

Example

using ChromaDB.Client;

var configOptions = new ChromaConfigurationOptions(uri: "http://localhost:8000/api/v1/");
using var httpClient = new HttpClient();
var client = new ChromaClient(configOptions, httpClient);

Console.WriteLine(await client.GetVersion());

var string5Collection = await client.GetOrCreateCollection("string5");
var string5Client = new ChromaCollectionClient(string5Collection, configOptions, httpClient);

await string5Client.Add(["340a36ad-c38a-406c-be38-250174aee5a4"], embeddings: [new([1f, 0.5f, 0f, -0.5f, -1f])]);

var getResult = await string5Client.Get("340a36ad-c38a-406c-be38-250174aee5a4", include: ChromaGetInclude.Metadatas | ChromaGetInclude.Documents | ChromaGetInclude.Embeddings);
Console.WriteLine($"ID: {getResult!.Id}");

var queryData = await string5Client.Query([new([1f, 0.5f, 0f, -0.5f, -1f]), new([1.5f, 0f, 2f, -1f, -1.5f])], include: ChromaQueryInclude.Metadatas | ChromaQueryInclude.Distances);
foreach (var item in queryData)
{
	foreach (var entry in item)
	{
		Console.WriteLine($"ID: {entry.Id} | Distance: {entry.Distance}");
	}
}

Status

NuGet Downloads NuGet NuGet Prerelease License CI

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 was computed.  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 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on ChromaDB.Client:

Package Downloads
ChromaDB.Client.DependencyInjection

.NET SDK for Chroma database

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ChromaDB.Client:

Repository Stars
Azure-Samples/eShopLite
eShopLite is a set of reference .NET applications implementing an eCommerce site with features like Semantic Search, MCP, Reasoning models and more.
Version Downloads Last Updated
1.0.1-ci-13369893450 2,577 2/17/2025 1.0.1-ci-13369893450 is deprecated because it is no longer maintained.
1.0.1-ci-13073132114 299 1/31/2025 1.0.1-ci-13073132114 is deprecated because it is no longer maintained.
1.0.0 14,342 1/31/2025 1.0.0 is deprecated because it is no longer maintained.
1.0.0-ci-13035157891 279 1/29/2025 1.0.0-ci-13035157891 is deprecated because it is no longer maintained.
0.9.2 998 11/8/2024 0.9.2 is deprecated because it is no longer maintained.
0.9.2-ci-11745472183 252 11/8/2024 0.9.2-ci-11745472183 is deprecated because it is no longer maintained.
0.9.1-ci-11745331435 254 11/8/2024 0.9.1-ci-11745331435 is deprecated because it is no longer maintained.
0.9.1-ci-11745261359 253 11/8/2024 0.9.1-ci-11745261359 is deprecated because it is no longer maintained.
0.9.1-ci-11686948419 233 11/5/2024 0.9.1-ci-11686948419 is deprecated because it is no longer maintained.
0.9.1-ci-11331222479 246 10/14/2024 0.9.1-ci-11331222479 is deprecated because it is no longer maintained.
0.9.1-ci-11289489875 262 10/11/2024 0.9.1-ci-11289489875 is deprecated because it is no longer maintained.
0.9.1-ci-11289485042 228 10/11/2024 0.9.1-ci-11289485042 is deprecated because it is no longer maintained.
0.9.1-ci-11164900345 221 10/3/2024 0.9.1-ci-11164900345 is deprecated because it is no longer maintained.
0.9.1-ci-11159157477 225 10/3/2024 0.9.1-ci-11159157477 is deprecated because it is no longer maintained.
0.9.0 439 10/3/2024 0.9.0 is deprecated because it is no longer maintained.
0.9.0-ci-11144530717 216 10/2/2024 0.9.0-ci-11144530717 is deprecated because it is no longer maintained.
0.9.0-ci-11144172869 229 10/2/2024 0.9.0-ci-11144172869 is deprecated because it is no longer maintained.
0.9.0-ci-11143203979 256 10/2/2024 0.9.0-ci-11143203979 is deprecated because it is no longer maintained.
0.9.0-ci-11143109474 236 10/2/2024 0.9.0-ci-11143109474 is deprecated because it is no longer maintained.
0.9.0-ci-11143071785 233 10/2/2024 0.9.0-ci-11143071785 is deprecated because it is no longer maintained.
Loading failed