ChromaDB.Client 0.9.1-ci-11331222479

Prefix Reserved
This is a prerelease version of ChromaDB.Client.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ChromaDB.Client --version 0.9.1-ci-11331222479                
NuGet\Install-Package ChromaDB.Client -Version 0.9.1-ci-11331222479                
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="0.9.1-ci-11331222479" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ChromaDB.Client --version 0.9.1-ci-11331222479                
#r "nuget: ChromaDB.Client, 0.9.1-ci-11331222479"                
#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.
// Install ChromaDB.Client as a Cake Addin
#addin nuget:?package=ChromaDB.Client&version=0.9.1-ci-11331222479&prerelease

// Install ChromaDB.Client as a Cake Tool
#tool nuget:?package=ChromaDB.Client&version=0.9.1-ci-11331222479&prerelease                

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 System.Diagnostics;
using ChromaDB.Client;

var configOptions = new ConfigurationOptions(uri: "http://localhost:8000/api/v1/");
using var httpClient = new ChromaDBHttpClient(configOptions);
var client = new ChromaDBClient(configOptions, httpClient);

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

var getOrCreateResponse = await client.GetOrCreateCollection("string5");
Trace.Assert(getOrCreateResponse.Success);

var string5Client = new ChromaDBCollectionClient(getOrCreateResponse.Data, httpClient);

var addResponse = await string5Client.Add(["340a36ad-c38a-406c-be38-250174aee5a4"], embeddings: [[1f, 0.5f, 0f, -0.5f, -1f]]);
Trace.Assert(addResponse.Success);

var getResponse = await string5Client.Get(["340a36ad-c38a-406c-be38-250174aee5a4"], include: ["metadatas", "documents", "embeddings"]);
if (getResponse.Success)
{
	foreach (var entry in getResponse.Data)
	{
		Console.WriteLine($"ID: {entry.Id}");
	}
}

var queryResponse = await string5Client.Query([[1f, 0.5f, 0f, -0.5f, -1f], [1.5f, 0f, 2f, -1f, -1.5f]],
	include: ["metadatas", "distances"]);
if (queryResponse.Success)
{
	foreach (var item in queryResponse.Data)
	{
		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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.9.2 127 11/8/2024
0.9.2-ci-11745472183 81 11/8/2024
0.9.1-ci-11745331435 75 11/8/2024
0.9.1-ci-11745261359 81 11/8/2024
0.9.1-ci-11686948419 71 11/5/2024
0.9.1-ci-11331222479 79 10/14/2024
0.9.1-ci-11289489875 67 10/11/2024
0.9.1-ci-11289485042 64 10/11/2024
0.9.1-ci-11164900345 69 10/3/2024
0.9.1-ci-11159157477 60 10/3/2024
0.9.0 104 10/3/2024
0.9.0-ci-11144530717 65 10/2/2024
0.9.0-ci-11144172869 68 10/2/2024
0.9.0-ci-11143203979 68 10/2/2024
0.9.0-ci-11143109474 69 10/2/2024
0.9.0-ci-11143071785 67 10/2/2024
0.9.0-ci-11143025802 67 10/2/2024
0.9.0-ci-11127691665 66 10/1/2024