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
servicesThe
IServiceCollectionto register theVectorStoreon.serviceKeyThe key to associate with the vector store.
connectionStringProviderThe connection string provider.
optionsProviderThe optional options provider to further configure the vector store.
lifetimeThe 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.