load static method
Reads a store previously written with save.
final store = await InMemoryVectorStoreFiles.load('index.bin');
Throws a FormatException when the file content is not a valid store and a FileSystemException when the file cannot be read.
Implementation
static Future<InMemoryVectorStore> load(String path) async {
final bytes = await File(path).readAsBytes();
return InMemoryVectorStore.fromBytes(bytes);
}