saveIndex method

Future<void> saveIndex()

Save HNSW index marker to disk.

Call this after rebuildIndex to mark that an index was built. This allows faster startup detection on next app launch.

Implementation

Future<void> saveIndex() async {
  await hnsw.saveHnswIndex(basePath: _indexPath);
}