tryLoadCachedIndex method

Future<bool> tryLoadCachedIndex({
  1. String? collectionId,
})

Try to load a cached HNSW index from disk.

Returns true if a previously built index exists.

Implementation

Future<bool> tryLoadCachedIndex({String? collectionId}) async {
  final service = await _serviceForCollection(collectionId);
  return service.tryLoadCachedIndex();
}