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 rust_rag.saveCollectionHnswIndex(
    collectionId: collectionId,
    basePath: _indexPath,
  );
}