Share via


SqliteServiceCollectionExtensions Class

Definition

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

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

Methods

AddSqliteVectorStore(IServiceCollection, SqliteVectorStoreOptions, String)

Register a SQLite Microsoft.Extensions.VectorData.IVectorStore with the specified service ID and where the SQLite SqliteConnection is retrieved from the dependency injection container. In this case vector search extension loading should be handled manually.

AddSqliteVectorStore(IServiceCollection, String, SqliteVectorStoreOptions, String)

Register a SQLite Microsoft.Extensions.VectorData.IVectorStore with the specified service ID. SqliteConnection instance will be initialized, connection will be opened and vector search extension with be loaded.

AddSqliteVectorStoreRecordCollection<TKey,TRecord>(IServiceCollection, String, SqliteVectorStoreRecordCollectionOptions<TRecord>, String)

Register a SQLite Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the SQLite SqliteConnection is retrieved from the dependency injection container. In this case vector search extension loading should be handled manually.

AddSqliteVectorStoreRecordCollection<TKey,TRecord>(IServiceCollection, String, String, SqliteVectorStoreRecordCollectionOptions<TRecord>, String)

Register a SQLite Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID. SqliteConnection instance will be initialized, connection will be opened and vector search extension with be loaded.

Applies to