ChromaDB.Client.DependencyInjection
0.9.1-ci-11745331435
Prefix Reserved
See the version list below for details.
dotnet add package ChromaDB.Client.DependencyInjection --version 0.9.1-ci-11745331435
NuGet\Install-Package ChromaDB.Client.DependencyInjection -Version 0.9.1-ci-11745331435
<PackageReference Include="ChromaDB.Client.DependencyInjection" Version="0.9.1-ci-11745331435" />
paket add ChromaDB.Client.DependencyInjection --version 0.9.1-ci-11745331435
#r "nuget: ChromaDB.Client.DependencyInjection, 0.9.1-ci-11745331435"
// Install ChromaDB.Client.DependencyInjection as a Cake Addin #addin nuget:?package=ChromaDB.Client.DependencyInjection&version=0.9.1-ci-11745331435&prerelease // Install ChromaDB.Client.DependencyInjection as a Cake Tool #tool nuget:?package=ChromaDB.Client.DependencyInjection&version=0.9.1-ci-11745331435&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 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
Product | Versions 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. |
-
net8.0
- ChromaDB.Client (>= 0.9.1-ci-11745331435)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
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 |
---|---|---|
0.9.2 | 72 | 11/8/2024 |
0.9.2-ci-11745472183 | 60 | 11/8/2024 |
0.9.1-ci-11745331435 | 58 | 11/8/2024 |
0.9.1-ci-11745261359 | 63 | 11/8/2024 |
0.9.1-ci-11686948419 | 70 | 11/5/2024 |