From 45d87a70db45d789493169e6f7739afefe40108c Mon Sep 17 00:00:00 2001 From: Laurianti Date: Fri, 9 Oct 2026 11:15:13 +0200 Subject: [PATCH] Use CommunityToolkit.VectorData.Chroma 1.0.0-preview in place of ChromaDotNet.VectorData --- README.md | 2 +- samples/Concepts/Agents/ChatCompletion_Rag_Chroma.cs | 2 +- samples/Concepts/Agents/ChatCompletion_Rag_Chroma_Ollama.cs | 2 +- samples/Concepts/Concepts.csproj | 2 +- .../Memory/VectorStore_DynamicDataModel_Interop_Chroma.cs | 2 +- .../Concepts/Memory/VectorStore_HybridSearch_Simple_Chroma.cs | 2 +- .../Memory/VectorStore_VectorSearch_MultiStore_Chroma.cs | 2 +- .../Concepts/Memory/VectorStore_VectorSearch_Paging_Chroma.cs | 2 +- .../ChromaVectorStoreFixtureBase.cs | 2 +- .../GettingStartedWithTextSearch.csproj | 2 +- .../GettingStartedWithTextSearch/Step5_Search_With_Chroma.cs | 2 +- .../Step5_Search_With_Chroma_Ollama.cs | 2 +- .../ChatCompletionRagTests.cs | 2 +- .../DataModelAndPagingTests.cs | 2 +- test/ChromaDB.SemanticKernel.Sample.Tests/MultiStoreTests.cs | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index dcaf5fb..4ca8353 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # ChromaDB.SemanticKernel.Sample -[Semantic Kernel](https://learn.microsoft.com/semantic-kernel/) samples that use [Chroma](https://www.trychroma.com/) as the vector store through [ChromaDotNet.VectorData](https://www.nuget.org/packages/ChromaDotNet.VectorData). +[Semantic Kernel](https://learn.microsoft.com/semantic-kernel/) samples that use [Chroma](https://www.trychroma.com/) as the vector store through [CommunityToolkit.VectorData.Chroma](https://www.nuget.org/packages/CommunityToolkit.VectorData.Chroma). It is the Chroma provider of the [AI Community Toolkit](https://github.com/CommunityToolkit/AI). They follow the structure of the Semantic Kernel .NET samples: the [concept samples](https://github.com/microsoft/semantic-kernel/tree/main/dotnet/samples/Concepts) and the [text search steps](https://github.com/microsoft/semantic-kernel/tree/main/dotnet/samples/GettingStartedWithTextSearch). Each sample is an xUnit test that runs against real models when it needs one. Chroma replaces the vector store that the original sample uses. The samples that use a chat model also come with models that run locally in Ollama. diff --git a/samples/Concepts/Agents/ChatCompletion_Rag_Chroma.cs b/samples/Concepts/Agents/ChatCompletion_Rag_Chroma.cs index b4ce517..2e36bf0 100644 --- a/samples/Concepts/Agents/ChatCompletion_Rag_Chroma.cs +++ b/samples/Concepts/Agents/ChatCompletion_Rag_Chroma.cs @@ -3,7 +3,7 @@ using Azure.AI.OpenAI; using Azure.Identity; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; diff --git a/samples/Concepts/Agents/ChatCompletion_Rag_Chroma_Ollama.cs b/samples/Concepts/Agents/ChatCompletion_Rag_Chroma_Ollama.cs index c5e88f4..5e2aae3 100644 --- a/samples/Concepts/Agents/ChatCompletion_Rag_Chroma_Ollama.cs +++ b/samples/Concepts/Agents/ChatCompletion_Rag_Chroma_Ollama.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.SemanticKernel; diff --git a/samples/Concepts/Concepts.csproj b/samples/Concepts/Concepts.csproj index 8e9e8dd..82ce9e6 100644 --- a/samples/Concepts/Concepts.csproj +++ b/samples/Concepts/Concepts.csproj @@ -16,7 +16,7 @@ - + diff --git a/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop_Chroma.cs b/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop_Chroma.cs index d39e150..ab0fbac 100644 --- a/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop_Chroma.cs +++ b/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop_Chroma.cs @@ -4,7 +4,7 @@ using Azure.AI.OpenAI; using Azure.Identity; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; diff --git a/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_Chroma.cs b/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_Chroma.cs index 07f6f79..54cb33d 100644 --- a/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_Chroma.cs +++ b/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_Chroma.cs @@ -3,7 +3,7 @@ using Azure.AI.OpenAI; using Azure.Identity; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; diff --git a/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Chroma.cs b/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Chroma.cs index f3e9877..8689e37 100644 --- a/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Chroma.cs +++ b/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Chroma.cs @@ -3,7 +3,7 @@ using Azure.AI.OpenAI; using Azure.Identity; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; diff --git a/samples/Concepts/Memory/VectorStore_VectorSearch_Paging_Chroma.cs b/samples/Concepts/Memory/VectorStore_VectorSearch_Paging_Chroma.cs index 5f62dfb..bc1e497 100644 --- a/samples/Concepts/Memory/VectorStore_VectorSearch_Paging_Chroma.cs +++ b/samples/Concepts/Memory/VectorStore_VectorSearch_Paging_Chroma.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory.VectorStoreFixtures; using Microsoft.Extensions.VectorData; diff --git a/samples/GettingStartedWithTextSearch/ChromaVectorStoreFixtureBase.cs b/samples/GettingStartedWithTextSearch/ChromaVectorStoreFixtureBase.cs index cc7d275..db21bef 100644 --- a/samples/GettingStartedWithTextSearch/ChromaVectorStoreFixtureBase.cs +++ b/samples/GettingStartedWithTextSearch/ChromaVectorStoreFixtureBase.cs @@ -2,7 +2,7 @@ using System.Reflection; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Microsoft.Extensions.AI; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.VectorData; diff --git a/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj b/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj index 8c1e301..6a82140 100644 --- a/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj +++ b/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj @@ -18,7 +18,7 @@ - + diff --git a/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma.cs b/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma.cs index bf2c269..9a79e1b 100644 --- a/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma.cs +++ b/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using Azure.Identity; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.AzureOpenAI; using Microsoft.SemanticKernel.Data; diff --git a/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma_Ollama.cs b/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma_Ollama.cs index 793d4ae..5d07f9a 100644 --- a/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma_Ollama.cs +++ b/samples/GettingStartedWithTextSearch/Step5_Search_With_Chroma_Ollama.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.Ollama; using Microsoft.SemanticKernel.Data; diff --git a/test/ChromaDB.SemanticKernel.Sample.Tests/ChatCompletionRagTests.cs b/test/ChromaDB.SemanticKernel.Sample.Tests/ChatCompletionRagTests.cs index 5e6604d..60dd989 100644 --- a/test/ChromaDB.SemanticKernel.Sample.Tests/ChatCompletionRagTests.cs +++ b/test/ChromaDB.SemanticKernel.Sample.Tests/ChatCompletionRagTests.cs @@ -1,6 +1,6 @@ using Agents; using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; diff --git a/test/ChromaDB.SemanticKernel.Sample.Tests/DataModelAndPagingTests.cs b/test/ChromaDB.SemanticKernel.Sample.Tests/DataModelAndPagingTests.cs index ff7a185..7bdcd2d 100644 --- a/test/ChromaDB.SemanticKernel.Sample.Tests/DataModelAndPagingTests.cs +++ b/test/ChromaDB.SemanticKernel.Sample.Tests/DataModelAndPagingTests.cs @@ -1,5 +1,5 @@ using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; diff --git a/test/ChromaDB.SemanticKernel.Sample.Tests/MultiStoreTests.cs b/test/ChromaDB.SemanticKernel.Sample.Tests/MultiStoreTests.cs index c40a5c3..9099268 100644 --- a/test/ChromaDB.SemanticKernel.Sample.Tests/MultiStoreTests.cs +++ b/test/ChromaDB.SemanticKernel.Sample.Tests/MultiStoreTests.cs @@ -1,5 +1,5 @@ using ChromaDB.Client; -using ChromaDB.VectorData; +using CommunityToolkit.VectorData.Chroma; using Memory; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection;