Encamina.Enmarcha.Data.Qdrant 10.0.2

dotnet add package Encamina.Enmarcha.Data.Qdrant --version 10.0.2
                    
NuGet\Install-Package Encamina.Enmarcha.Data.Qdrant -Version 10.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Encamina.Enmarcha.Data.Qdrant" Version="10.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Encamina.Enmarcha.Data.Qdrant" Version="10.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Encamina.Enmarcha.Data.Qdrant" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Encamina.Enmarcha.Data.Qdrant --version 10.0.2
                    
#r "nuget: Encamina.Enmarcha.Data.Qdrant, 10.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Encamina.Enmarcha.Data.Qdrant@10.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Encamina.Enmarcha.Data.Qdrant&version=10.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Encamina.Enmarcha.Data.Qdrant&version=10.0.2
                    
Install as a Cake Tool

Data - Qdrant

Nuget package

The Data Qdrant project contains functionalities related to the Qdrant vector database.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.Data.Qdrant from the package manager console:

PM> Install-Package Encamina.Enmarcha.Data.Qdrant

.NET CLI:

First, install .NET CLI. Then, install Encamina.Enmarcha.Data.Qdrant from the .NET CLI:

dotnet add package Encamina.Enmarcha.Data.Qdrant

How to use

QdrantSnapshotHandler

Qdrant vector database supports creating snapshots, which consist in a .snapshot archive file containing the necessary data to restore the collection at the time of the snapshot. This handler allows you to take snapshots of Qdrant. First, you need to add the QdrantOptions to your project configuration. You can achieve this by using any configuration provider. The followng code is an example of how the settings would appear using the appsettings.json file:

// ...
  "QdrantOptions": {
    "Host": "https://sample-qdrant.azurewebsites.net/", // Endpoint protocol and host
    "Port": 6333, // Endpoint port
    "VectorSize": 1536, // Vector size
    "ApiKey": "xxxxxxxxxx" // API Key used by Qdrant as a form of client authentication.
  },
// ...

Starting from a Program.cs or a similar entry point file in your project, add the following code:

// Entry point
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
    // ...
});

// ... 

// Or others configuration providers...
builder.Configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); 

builder.Services.AddOptions<QdrantOptions>().Bind(builder.Configuration.GetSection(nameof(QdrantOptions)))
    .ValidateDataAnnotations()
    .ValidateOnStart();

services.AddQdrantSnapshotHandler();

This extension method will add the implementation of the IQdrantSnapshotHandler interface as a singleton, in addition to configuring an HttpClient with QdrantOptions so that the handler can use the Qdrant REST API. The implementation is QdrantSnapshotHandler. With this, it can resolve the IQdrantSnapshotHandler interface and take snapshots:

public class MyClass
{
    private readonly IQdrantSnapshotHandler qdrantSnapshotHandler;

    public MyClass(IQdrantSnapshotHandler qdrantSnapshotHandler)
    {
        this.qdrantSnapshotHandler = qdrantSnapshotHandler;
    }

    public async Task TestQdrantSnapshotAsync()
    {
        await qdrantSnapshotHandler.CreateCollectionSnapshotAsync("my-collection-1", CancellationToken.None);
    }
}

The previous code creates a snapshot of the 'my-collection-1' collection.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.2 299 12/17/2025
10.0.1 292 12/17/2025
10.0.0 279 12/16/2025
10.0.0-preview-09 422 11/19/2025
10.0.0-preview-08 405 11/18/2025
10.0.0-preview-07 193 10/22/2025
10.0.0-preview-06 194 10/14/2025
10.0.0-preview-05 185 10/8/2025
10.0.0-preview-04 187 10/7/2025
10.0.0-preview-03 323 9/16/2025
10.0.0-preview-02 320 9/16/2025
8.3.0 216 9/10/2025
8.3.0-preview-02 182 9/10/2025
8.3.0-preview-01 180 9/8/2025
8.2.1-preview-08 184 8/18/2025
8.2.1-preview-07 186 8/12/2025
8.2.1-preview-06 171 8/11/2025
8.2.1-preview-05 263 8/5/2025
8.2.1-preview-04 182 7/15/2025
Loading failed