RedisKernelBuilderExtensions.AddRedisJsonVectorStoreRecordCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AddRedisJsonVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, RedisJsonVectorStoreRecordCollectionOptions<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. |
| AddRedisJsonVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, String, RedisJsonVectorStoreRecordCollectionOptions<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 |
AddRedisJsonVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, RedisJsonVectorStoreRecordCollectionOptions<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 AddRedisJsonVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, Microsoft.SemanticKernel.Connectors.Redis.RedisJsonVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddRedisJsonVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * Microsoft.SemanticKernel.Connectors.Redis.RedisJsonVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddRedisJsonVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, Optional options As RedisJsonVectorStoreRecordCollectionOptions(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.
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
AddRedisJsonVectorStoreRecordCollection<TRecord>(IKernelBuilder, String, String, RedisJsonVectorStoreRecordCollectionOptions<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 AddRedisJsonVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, string redisConnectionConfiguration, Microsoft.SemanticKernel.Connectors.Redis.RedisJsonVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddRedisJsonVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * string * Microsoft.SemanticKernel.Connectors.Redis.RedisJsonVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddRedisJsonVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, redisConnectionConfiguration As String, Optional options As RedisJsonVectorStoreRecordCollectionOptions(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.
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.