AddOracleVectorStore(IServiceCollection, string, OracleVectorStoreOptions?, ServiceLifetime)
This method registers an OracleVectorStore as VectorStore, with the specified connection string and service lifetime.
Declaration
// C#
public static IServiceCollection AddOracleVectorStore(this IServiceCollection services,string connectionString,OracleVectorStoreOptions? options = null,ServiceLifetime lifetime = ServiceLifetime.Singleton)
Parameters
-
servicesThe
IServiceCollectionto register theVectorStoreon. -
connectionStringThe connection string.
-
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
servicesparameter is null. -
The provided
connectionStringparameter is null or empty string.