.NET: Switch to using new community toolkit VectorData packages#5694
Open
westey-m wants to merge 2 commits intomicrosoft:mainfrom
Open
.NET: Switch to using new community toolkit VectorData packages#5694westey-m wants to merge 2 commits intomicrosoft:mainfrom
westey-m wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the .NET sample apps to use the newer CommunityToolkit.VectorData.* vector store connector packages (InMemory + Qdrant) instead of the older Semantic Kernel connector packages, aligning the samples with the current VectorData ecosystem.
Changes:
- Replace
Microsoft.SemanticKernel.Connectors.*package references/usings in samples withCommunityToolkit.VectorData.*equivalents. - Update the vector attribute usage in the Qdrant custom-schema sample to match the new attribute API usage.
- Bump central package versions for
Microsoft.Extensions.AIandMicrosoft.Extensions.VectorData.Abstractions, and introduce central versions for the new CommunityToolkit connector packages.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs | Switch Qdrant connector namespace and update vector attribute argument naming. |
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG/AgentWithRAG_Step02_CustomVectorStoreRAG.csproj | Swap Qdrant package reference to CommunityToolkit connector. |
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step01_BasicTextRAG/Program.cs | Switch InMemory connector namespace to CommunityToolkit. |
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step01_BasicTextRAG/AgentWithRAG_Step01_BasicTextRAG.csproj | Swap InMemory package reference to CommunityToolkit connector. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step05_BoundedChatHistory/Program.cs | Switch InMemory connector namespace to CommunityToolkit. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step05_BoundedChatHistory/AgentWithMemory_Step05_BoundedChatHistory.csproj | Swap InMemory package reference to CommunityToolkit connector. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step01_ChatHistoryMemory/Program.cs | Switch InMemory connector namespace to CommunityToolkit. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step01_ChatHistoryMemory/AgentWithMemory_Step01_ChatHistoryMemory.csproj | Swap InMemory package reference to CommunityToolkit connector. |
| dotnet/samples/02-agents/Agents/Agent_Step04_3rdPartyChatHistoryStorage/Program.cs | Switch InMemory connector namespace to CommunityToolkit. |
| dotnet/samples/02-agents/Agents/Agent_Step04_3rdPartyChatHistoryStorage/Agent_Step04_3rdPartyChatHistoryStorage.csproj | Swap InMemory package reference to CommunityToolkit connector. |
| dotnet/Directory.Packages.props | Central package updates: add CommunityToolkit connector versions and bump relevant Microsoft.Extensions.* versions. |
Comments suppressed due to low confidence (1)
dotnet/Directory.Packages.props:80
- Microsoft.Extensions.AI / Microsoft.Extensions.AI.Abstractions were bumped to 10.5.2, but Microsoft.Extensions.AI.OpenAI remains at 10.5.1. To avoid version skew within the same component set (and potential transitive dependency resolution issues), update Microsoft.Extensions.AI.OpenAI to the matching patch version as well (or keep the AI packages on 10.5.1 if 10.5.2 isn’t required).
<PackageVersion Include="Microsoft.Extensions.AI" Version="10.5.2" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.5.2" />
<PackageVersion Include="Microsoft.Extensions.AI.Evaluation" Version="10.4.0" />
<PackageVersion Include="Microsoft.Extensions.AI.Evaluation.Quality" Version="10.4.0" />
<PackageVersion Include="Microsoft.Extensions.AI.Evaluation.Safety" Version="10.3.0-preview.1.26109.11" />
<PackageVersion Include="Microsoft.Extensions.AI.OpenAI" Version="10.5.1" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="10.0.0" />
rogerbarreto
approved these changes
May 7, 2026
SergeyMenshykh
approved these changes
May 7, 2026
roji
approved these changes
May 7, 2026
|
I found the top secret https://github.com/CommunityToolkit/AI 🚀 , but sadly, no access 😢 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Description
Contribution Checklist