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

This method registers a keyed OracleVectorStore as VectorStore, with the specified connection string and service lifetime.

Declaration

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

Parameters

  • services

    The IServiceCollection to register the VectorStore on.

  • serviceKey

    The key to associate with the vector store.

  • connectionString

    The connection string.

  • options

    Options to further configure the vector store.

  • lifetime

    The service lifetime for the store. Defaults to ServiceLifetime.Singleton.

Return Value

Returns the service collection.