Create an IndexedDBVectorStore instance.
Embeddings interface for vectorization.
Optional configuration for DB, store, and similarity.
Add an array of documents to the store.
Documents to add.
Add precomputed vectors and their documents to the store.
Array of vectors.
Corresponding documents.
Clear all records from the store.
Close the underlying database connection.
Get the number of records in the store.
Number of records.
Perform a Maximal Marginal Relevance (MMR) search for diverse results.
Query string.
MMR options (k, fetchK, lambda, filter).
Array of matching documents.
Perform a similarity search for documents matching a query string.
Query string.
Number of top results.
Optionalfilter: IndexedDBVectorStoreFilterOptional filter function.
Array of matching documents.
Optionalfilter: IndexedDBVectorStoreFilterPerform a similarity search and return documents with their similarity scores.
Query string.
Number of top results.
Optionalfilter: IndexedDBVectorStoreFilterOptional filter function.
Array of [Document, score] pairs.
StaticfromOptionalargs: IndexedDBVectorStoreArgsStaticfromOptionalargs: IndexedDBVectorStoreArgsStaticfromOptionalargs: IndexedDBVectorStoreArgs
IndexedDBVectorStore provides persistent vector storage using IndexedDB. Supports similarity search, MMR, and batch operations.