Repository navigation
.Net: Add Milvus vector store examples - #14717
Open
Luca Schiavone (Overvolted) wants to merge 4 commits into
Open
Luca Schiavone (Overvolted) wants to merge 4 commits into
Luca Schiavone (Overvolted) wants to merge 4 commits into
Conversation
Luca Schiavone (Overvolted)
temporarily deployed
to
github-app-auth
November 3, 2026 23:17 — with
GitHub Actions
Inactive
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The fixture and documented command expose unauthenticated Milvus on all host interfaces, and failed fixture startup leaves orphaned containers.
3 open issues
What changed in this PR
Adds Milvus support to the .NET vector search samples and VectorStoreRAG demo through the CommunityToolkit provider, following the removal of the legacy connector.
Changes:
- Adds Milvus examples with and without dependency injection, plus a Docker fixture with readiness checks and cleanup.
- Adds Milvus connection settings and registration to VectorStoreRAG, with local and remote setup documentation.
- References the provider package and links the new example from existing sample documentation.
| File | Description |
|---|---|
dotnet/samples/Demos/VectorStoreRAG/VectorStoreRAG.csproj |
References the Milvus provider. |
dotnet/samples/Demos/VectorStoreRAG/README.md |
Documents Milvus setup and configuration. |
dotnet/samples/Demos/VectorStoreRAG/Program.cs |
Registers Milvus collections and RAG services. |
dotnet/samples/Demos/VectorStoreRAG/Options/MilvusConfig.cs |
Defines Milvus connection settings. |
dotnet/samples/Demos/VectorStoreRAG/Options/ApplicationConfig.cs |
Binds and exposes Milvus settings. |
dotnet/samples/Demos/VectorStoreRAG/appsettings.json |
Supplies local Milvus defaults. |
dotnet/samples/Concepts/Memory/VectorStoreFixtures/VectorStoreMilvusContainerFixture.cs |
Manages container readiness and cleanup. |
dotnet/samples/Concepts/Memory/VectorStoreFixtures/VectorStoreInfra.cs |
Adds standalone Milvus container creation. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Redis.cs |
Adds a documentation link to Milvus. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Qdrant.cs |
Adds a documentation link to Milvus. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Postgres.cs |
Adds a documentation link to Milvus. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Milvus.cs |
Adds examples with and without dependency injection. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_InMemory.cs |
Adds a documentation link to Milvus. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Common.cs |
Lists Milvus in the shared sample documentation. |
dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_AzureAISearch.cs |
Adds a documentation link to Milvus. |
dotnet/samples/Concepts/Concepts.csproj |
References the Milvus provider. |
dotnet/Directory.Packages.props |
Pins the provider to 1.0.0-preview. |
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Author
|
I ran the new sample and the Qdrant one with Azure OpenAI embeddings: both print the same results, with the same scores. |
This branch was previously deployed
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
#14682 removed the .NET Milvus connector and points to the provider in CommunityToolkit/AI.
This PR adds Milvus to the multi-store vector search sample and the VectorStoreRAG demo, using CommunityToolkit.VectorData.Milvus. It follows the Chroma sample additions in #14602.
Description
VectorStore_VectorSearch_MultiStore_Milvus, with examples using and without dependency injection.Milvusas aRag:VectorStoreTypeoption in VectorStoreRAG, with host, port, TLS, API key, and database configuration.CommunityToolkit.VectorData.Milvus1.0.0-preview from both sample projects.Contribution Checklist