getStats method

  1. @override
Future<VectorStoreStats> getStats()
override

Get vector store statistics

Returns:

  • documentCount: Total number of documents
  • vectorDimension: Embedding dimension (0 if empty)

Throws StateError if not initialized Throws VectorStoreException if the store is initialized but holds on-disk data it could not read — an implementation must refuse rather than report an unreadable corpus as an empty one.

Implementation

@override
Future<VectorStoreStats> getStats() async {
  throw UnimplementedError(
    'WebSqliteVectorStore is only available on web; use SqliteVectorStore',
  );
}