Share via


RedisKernelBuilderExtensions.AddRedisHashSetVectorStoreRecordCollection Method

Definition

Overloads

AddRedisHashSetVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, RedisHashSetVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Redis Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 with the specified service ID and where the Redis StackExchange.Redis.IDatabase is retrieved from the dependency injection container.

AddRedisHashSetVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, String, RedisHashSetVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Redis Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 with the specified service ID and where the Redis StackExchange.Redis.IDatabase is constructed using the provided redisConnectionConfiguration.

AddRedisHashSetVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, RedisHashSetVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Redis Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 with the specified service ID and where the Redis StackExchange.Redis.IDatabase is retrieved from the dependency injection container.

public static Microsoft.SemanticKernel.IKernelBuilder AddRedisHashSetVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, Microsoft.SemanticKernel.Connectors.Redis.RedisHashSetVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddRedisHashSetVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * Microsoft.SemanticKernel.Connectors.Redis.RedisHashSetVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddRedisHashSetVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, Optional options As RedisHashSetVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Type Parameters

TRecord

The type of the record.

Parameters

builder
IKernelBuilder

The builder to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.

collectionName
String

The name of the collection.

options
RedisHashSetVectorStoreRecordCollectionOptions<TRecord>

Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.

serviceId
String

An optional service id to use as the service key.

Returns

The kernel builder.

Applies to

AddRedisHashSetVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, String, RedisHashSetVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Redis Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 with the specified service ID and where the Redis StackExchange.Redis.IDatabase is constructed using the provided redisConnectionConfiguration.

public static Microsoft.SemanticKernel.IKernelBuilder AddRedisHashSetVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, string redisConnectionConfiguration, Microsoft.SemanticKernel.Connectors.Redis.RedisHashSetVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddRedisHashSetVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * string * Microsoft.SemanticKernel.Connectors.Redis.RedisHashSetVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddRedisHashSetVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, redisConnectionConfiguration As String, Optional options As RedisHashSetVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Type Parameters

TRecord

The type of the record.

Parameters

builder
IKernelBuilder

The builder to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.

collectionName
String

The name of the collection.

redisConnectionConfiguration
String

The Redis connection configuration string.

options
RedisHashSetVectorStoreRecordCollectionOptions<TRecord>

Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.

serviceId
String

An optional service id to use as the service key.

Returns

The kernel builder.

Applies to