PostgresServiceCollectionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |