Partager via


KernelBuilderExtensions.AddVolatileVectorStore(IKernelBuilder, String) Method

Definition

Register a Volatile IVectorStore with the specified service ID.

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

Parameters

builder
IKernelBuilder

The builder to register the IVectorStore on.

serviceId
String

An optional service id to use as the service key.

Returns

The kernel builder.

Applies to