Aspire.Qdrant.Client
8.0.0
Prefix Reserved
This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotent/aspire/support
See the version list below for details.
dotnet add package Aspire.Qdrant.Client --version 8.0.0
NuGet\Install-Package Aspire.Qdrant.Client -Version 8.0.0
<PackageReference Include="Aspire.Qdrant.Client" Version="8.0.0" />
<PackageVersion Include="Aspire.Qdrant.Client" Version="8.0.0" />
<PackageReference Include="Aspire.Qdrant.Client" />
paket add Aspire.Qdrant.Client --version 8.0.0
#r "nuget: Aspire.Qdrant.Client, 8.0.0"
#:package Aspire.Qdrant.Client@8.0.0
#addin nuget:?package=Aspire.Qdrant.Client&version=8.0.0
#tool nuget:?package=Aspire.Qdrant.Client&version=8.0.0
Aspire.Qdrant.Client library
Registers a QdrantClient in the DI container for connecting to a Qdrant server.
Getting started
Prerequisites
- Qdrant server and connection string for accessing the server API endpoint.
Install the package
Install the .NET Aspire Qdrant Client library with NuGet:
dotnet add package Aspire.Qdrant.Client
Usage example
In the Program.cs file of your project, call the AddQdrantClient extension method to register a QdrantClient for use via the dependency injection container. The method takes a connection name parameter.
builder.AddQdrantClient("qdrant");
Configuration
The .NET Aspire Qdrant Client component provides multiple options to configure the server connection based on the requirements and conventions of your project.
Use a connection string
When using a connection string from the ConnectionStrings configuration section, you can provide the name of the connection string when calling builder.AddQdrantClient():
builder.AddQdrantClient("qdrant");
And then the connection string will be retrieved from the ConnectionStrings configuration section:
{
"ConnectionStrings": {
"qdrant": "Endpoint=http://localhost:6334;Key=123456!@#$%"
}
}
By default the QdrantClient uses the gRPC API endpoint.
Use configuration providers
The .NET Aspire Qdrant Client component supports Microsoft.Extensions.Configuration. It loads the QdrantSettings from configuration by using the Aspire:Qdrant:Client key. Example appsettings.json that configures some of the options:
{
"Aspire": {
"Qdrant": {
"Client": {
"Key": "123456!@#$%"
}
}
}
}
Use inline delegates
Also you can pass the Action<QdrantSettings> configureSettings delegate to set up some or all the options inline, for example to set the API key from code:
builder.AddQdrantClient("qdrant", settings => settings.ApiKey = "12345!@#$%");
AppHost extensions
In your AppHost project, install the Aspire.Hosting.Qdrant library with NuGet:
dotnet add package Aspire.Hosting.Qdrant
Then, in the Program.cs file of AppHost, register a Qdrant server and consume the connection using the following methods:
var qdrant = builder.AddQdrant("qdrant");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(qdrant);
The WithReference method configures a connection in the MyService project named qdrant. In the Program.cs file of MyService, the Qdrant connection can be consumed using:
builder.AddQdrantClient("qdrant");
Additional documentation
- https://github.com/qdrant/qdrant-dotnet
- https://github.com/dotnet/aspire/tree/main/src/Components/README.md
Feedback & contributing
https://github.com/dotnet/aspire
Qdrant, and the Qdrant logo are trademarks or registered trademarks of Qdrant Solutions GmbH of Germany, and used with their permission.
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Configuration.Binder (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Qdrant.Client (>= 1.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Aspire.Qdrant.Client:
| Repository | Stars |
|---|---|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
foxminchan/BookWorm
The practical implementation of Aspire using Microservices, AI-Agents
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.0.2 | 912 | 12/4/2025 | |
| 13.0.1 | 446 | 11/26/2025 | |
| 13.0.0 | 5,175 | 11/11/2025 | |
| 9.5.2 | 1,590 | 10/23/2025 | |
| 9.5.1 | 2,885 | 10/3/2025 | |
| 9.5.0 | 1,633 | 9/25/2025 | |
| 9.4.2 | 2,701 | 9/2/2025 | |
| 9.4.1 | 1,667 | 8/12/2025 | |
| 9.4.0 | 2,344 | 7/29/2025 | |
| 9.3.1 | 8,878 | 6/10/2025 | |
| 9.3.0 | 4,287 | 5/19/2025 | |
| 9.2.1 | 3,180 | 4/24/2025 | |
| 9.2.0 | 2,258 | 4/10/2025 | |
| 9.1.0 | 4,559 | 2/25/2025 | |
| 9.0.0 | 4,281 | 11/12/2024 | |
| 9.0.0-rc.1.24511.1 | 388 | 10/15/2024 | |
| 8.2.2 | 530 | 10/24/2024 | |
| 8.2.1 | 542 | 9/26/2024 | |
| 8.2.0 | 1,584 | 8/29/2024 | |
| 8.1.0 | 386 | 7/23/2024 | |
| 8.0.2 | 583 | 6/28/2024 | |
| 8.0.1 | 761 | 5/21/2024 | |
| 8.0.0 | 319 | 5/21/2024 | |
| 8.0.0-preview.7.24251.11 | 200 | 5/7/2024 | |
| 8.0.0-preview.6.24214.1 | 219 | 4/23/2024 |