WebSqliteVectorStore class
Web stub for VectorStoreRepository
This stub is used on non-web platforms where dart:js_interop is not available. The actual web implementation is in web_sqlite_vector_store.dart.
Constructors
Properties
- enableHnsw ↔ bool
-
Legacy no-op kept for source compatibility.
getter/setter pairoverride
- filterSchema → FilterSchema
-
The filterable-metadata schema this store was configured with.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Check if vector store is initialized
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDocument(
{required String id, required String content, required List< double> embedding, String? metadata}) → Future<void> -
Add document with embedding to vector store
override
-
clear(
) → Future< void> -
Clear all documents from vector store
override
-
close(
) → Future< void> -
Close vector store and release resources
override
-
configure(
FilterSchema schema) → void -
Declare which metadata fields this store should make filterable.
override
-
flush(
) → Future< void> -
Persist everything written so far, without closing the store.
override
-
getStats(
) → Future< VectorStoreStats> -
Get vector store statistics
override
-
initialize(
String databasePath) → Future< void> -
Initialize vector store at given database path
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDocument(
{required String id}) → Future< void> -
Remove a document from the vector store by its ID.
override
-
searchSimilar(
{required List< double> queryEmbedding, required int topK, double threshold = 0.0, Filter? filter}) → Future<List< RetrievalResult> > -
Search for similar documents using cosine similarity
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited