AddOracleVectorStore(IServiceCollection, string, OracleVectorStoreOptions?, ServiceLifetime)
このメソッドは、指定された接続文字列およびサービス存続期間を使用して、OracleVectorStoreを、VectorStoreとして登録します。
宣言
// C#
public static IServiceCollection AddOracleVectorStore(this IServiceCollection services,string connectionString,OracleVectorStoreOptions? options = null,ServiceLifetime lifetime = ServiceLifetime.Singleton)パラメータ
servicesVectorStoreを登録するIServiceCollection。connectionString接続文字列です。
optionsベクトル・ストアを詳細に構成するためのオプション。
lifetimeストアのサービス存続期間。デフォルトは
ServiceLifetime.Singletonです。
戻り値
サービス・コレクションを返します。
例外
InvalidArgumentException
- 指定された
servicesパラメータがnullです。 - 指定された
connectionStringパラメータがnullまたは空の文字列です。