Skip to content

.NET: Switch to using new community toolkit VectorData packages#5694

Open
westey-m wants to merge 2 commits intomicrosoft:mainfrom
westey-m:vectordata-community-toolkit
Open

.NET: Switch to using new community toolkit VectorData packages#5694
westey-m wants to merge 2 commits intomicrosoft:mainfrom
westey-m:vectordata-community-toolkit

Conversation

@westey-m
Copy link
Copy Markdown
Contributor

@westey-m westey-m commented May 7, 2026

Motivation and Context

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings May 7, 2026 10:55
@moonbox3 moonbox3 added the .NET label May 7, 2026
@github-actions github-actions Bot changed the title Switch to using new community toolkit VectorData packages .NET: Switch to using new community toolkit VectorData packages May 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with CommunityToolkit.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.AI and Microsoft.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" />

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Code Review

Reviewers: 4 | Confidence: 89% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by westey-m's agents

@Vijay-Nirmal
Copy link
Copy Markdown

Vijay-Nirmal commented May 7, 2026

I found the top secret https://github.com/CommunityToolkit/AI 🚀 , but sadly, no access 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants