Freigeben über


QdrantServiceCollectionExtensions.AddQdrantVectorStore Method

Definition

Overloads

AddQdrantVectorStore(IServiceCollection, QdrantVectorStoreOptions, String)

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

AddQdrantVectorStore(IServiceCollection, 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(IServiceCollection, 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.Extensions.DependencyInjection.IServiceCollection AddQdrantVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions? options = default, string? serviceId = default);
static member AddQdrantVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddQdrantVectorStore (services As IServiceCollection, Optional options As QdrantVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection 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 service collection.

Applies to

AddQdrantVectorStore(IServiceCollection, 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.Extensions.DependencyInjection.IServiceCollection AddQdrantVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, 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.Extensions.DependencyInjection.IServiceCollection * string * int * bool * string * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddQdrantVectorStore (services As IServiceCollection, 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 IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection 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 service collection.

Applies to