AddOracleVectorStore(this IServiceCollection, OracleVectorStoreOptions?, ServiceLifetime)
This method registers an OracleVectorStore as VectorStore, with the OracleDataSource retrieved from the IServiceCollection.
Declaration
// C#
public static IServiceCollection AddOracleVectorStore(this IServiceCollection services, OracleVectorStoreOptions? options = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton);Parameters
servicesThe
IServiceCollectionto register theVectorStoreon.optionsOptions 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 services parameter is null.
InvalidOperationException: The service collection does not contain an OracleDataSource.