Partager via


ServiceCollectionExtensions.AddVolatileVectorStore Method

Definition

Register a Volatile IVectorStore with the specified service ID.

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

Parameters

services
IServiceCollection

The IServiceCollection to register the IVectorStore on.

serviceId
String

An optional service id to use as the service key.

Returns

The service collection.

Applies to