AddKeyedOracleVectorStore(IServiceCollection, object?, Func<IServiceProvider, string>, Func<IServiceProvider, OracleVectorStoreOptions>?, ServiceLifetime)

This method registers a keyed OracleVectorStore as VectorStore, with the specified connection string provider and service lifetime.

Declaration

// C#
public static IServiceCollection AddKeyedOracleVectorStore(this IServiceCollection services, object? serviceKey, Func<IServiceProvider, string> connectionStringProvider, Func<IServiceProvider, OracleVectorStoreOptions>? optionsProvider = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton)

Parameters

  • services

    The IServiceCollection to register the VectorStore on.

  • serviceKey

    The key to associate with the vector store.

  • connectionStringProvider

    The connection string provider.

  • optionsProvider

    The optional options provider to further configure the vector store.

  • lifetime

    The service lifetime for the store. Defaults to ServiceLifetime.Singleton.

Return Value

Returns the service collection.

Exceptions

InvalidArgumentException: The provided connectionStringProvider or services parameters is null.