AddKeyedOracleVectorStore(IServiceCollection, object?, string, OracleVectorStoreOptions?, ServiceLifetime)

このメソッドは、指定された接続文字列およびサービス存続期間を使用して、キーが指定されたOracleVectorStoreを、VectorStoreとして登録します。

宣言

// C#
public static IServiceCollection AddKeyedOracleVectorStore(this IServiceCollection services,object? serviceKey,string connectionString,OracleVectorStoreOptions? options = null,ServiceLifetime lifetime = ServiceLifetime.Singleton) 

パラメータ

  • services

    VectorStoreを登録するIServiceCollection

  • serviceKey

    ベクトル・ストアに関連付けるキー。

  • connectionString

    接続文字列です。

  • options

    ベクトル・ストアを詳細に構成するためのオプション。

  • lifetime

    ストアのサービス存続期間。デフォルトはServiceLifetime.Singletonです。

戻り値

サービス・コレクションを返します。