Share via


QdrantKernelBuilderExtensions.AddQdrantVectorStore Method

Definition

Overloads

AddQdrantVectorStore(IKernelBuilder, QdrantVectorStoreOptions, String)

Register a Qdrant IVectorStore with the specified service ID and where Qdrant.Client.QdrantClient is retrieved from the dependency injection container.

AddQdrantVectorStore(IKernelBuilder, String, Int32, Boolean, String, QdrantVectorStoreOptions, String)

Register a Qdrant IVectorStore with the specified service ID and where Qdrant.Client.QdrantClient is constructed using the provided parameters.

AddQdrantVectorStore(IKernelBuilder, QdrantVectorStoreOptions, String)

Register a Qdrant IVectorStore with the specified service ID and where Qdrant.Client.QdrantClient is retrieved from the dependency injection container.

public static Microsoft.SemanticKernel.IKernelBuilder AddQdrantVectorStore (this Microsoft.SemanticKernel.IKernelBuilder builder, Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions? options = default, string? serviceId = default);
static member AddQdrantVectorStore : Microsoft.SemanticKernel.IKernelBuilder * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddQdrantVectorStore (builder As IKernelBuilder, Optional options As QdrantVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The builder to register the IVectorStore on.

options
QdrantVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

The kernel builder.

Applies to

AddQdrantVectorStore(IKernelBuilder, String, Int32, Boolean, String, QdrantVectorStoreOptions, String)

Register a Qdrant IVectorStore with the specified service ID and where Qdrant.Client.QdrantClient is constructed using the provided parameters.

public static Microsoft.SemanticKernel.IKernelBuilder AddQdrantVectorStore (this Microsoft.SemanticKernel.IKernelBuilder builder, string host, int port = 6334, bool https = false, string? apiKey = default, Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions? options = default, string? serviceId = default);
static member AddQdrantVectorStore : Microsoft.SemanticKernel.IKernelBuilder * string * int * bool * string * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddQdrantVectorStore (builder As IKernelBuilder, host As String, Optional port As Integer = 6334, Optional https As Boolean = false, Optional apiKey As String = Nothing, Optional options As QdrantVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The builder to register the IVectorStore on.

host
String

The Qdrant service host name.

port
Int32

The Qdrant service port.

https
Boolean

A value indicating whether to use HTTPS for communicating with Qdrant.

apiKey
String

The Qdrant service API key.

options
QdrantVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

The kernel builder.

Applies to