Share via


RedisKernelBuilderExtensions.AddRedisVectorStore Method

Definition

Overloads

AddRedisVectorStore(IKernelBuilder, RedisVectorStoreOptions, String)

Register a Redis IVectorStore with the specified service ID and where the Redis StackExchange.Redis.IDatabase is retrieved from the dependency injection container.

AddRedisVectorStore(IKernelBuilder, String, RedisVectorStoreOptions, String)

Register a Redis IVectorStore with the specified service ID and where the Redis StackExchange.Redis.IDatabase is constructed using the provided redisConnectionConfiguration.

AddRedisVectorStore(IKernelBuilder, RedisVectorStoreOptions, String)

Register a Redis IVectorStore with the specified service ID and where the Redis StackExchange.Redis.IDatabase is retrieved from the dependency injection container.

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

Parameters

builder
IKernelBuilder

The builder to register the IVectorStore on.

options
RedisVectorStoreOptions

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

AddRedisVectorStore(IKernelBuilder, String, RedisVectorStoreOptions, String)

Register a Redis IVectorStore with the specified service ID and where the Redis StackExchange.Redis.IDatabase is constructed using the provided redisConnectionConfiguration.

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

Parameters

builder
IKernelBuilder

The builder to register the IVectorStore on.

redisConnectionConfiguration
String

The Redis connection configuration string. If not provided, an StackExchange.Redis.IDatabase instance will be requested from the dependency injection container.

options
RedisVectorStoreOptions

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