Freigeben über


PostgresServiceCollectionExtensions Class

Definition

Extension methods to register Postgres Microsoft.Extensions.VectorData.IVectorStore instances on an IServiceCollection.

public static class PostgresServiceCollectionExtensions
type PostgresServiceCollectionExtensions = class
Public Module PostgresServiceCollectionExtensions
Inheritance
PostgresServiceCollectionExtensions

Methods

AddPostgresVectorStore(IServiceCollection, PostgresVectorStoreOptions, String)

Register a Postgres Microsoft.Extensions.VectorData.IVectorStore with the specified service ID and where the NpgsqlDataSource is retrieved from the dependency injection container.

AddPostgresVectorStore(IServiceCollection, String, PostgresVectorStoreOptions, String)

Register a Postgres Microsoft.Extensions.VectorData.IVectorStore with the specified service ID and where an NpgsqlDataSource is constructed using the provided parameters.

AddPostgresVectorStoreRecordCollection<TKey,TRecord>(IServiceCollection, String, PostgresVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Postgres Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the NpgsqlDataSource is retrieved from the dependency injection container.

AddPostgresVectorStoreRecordCollection<TKey,TRecord>(IServiceCollection, String, String, PostgresVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Postgres Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the NpgsqlDataSource is constructed using the provided parameters.

Applies to