saveToStorage()
Save current state to storage.Signature
Description
Persists all embeddings, metadata, and HNSW index structure (if enabled) to the configured storage adapter.Example
Errors
clearStorage()
Clear storage cache.Signature
Description
Deletes all persisted embeddings from storage. Does not affect in-memory data.Example
close()
Close the database and storage adapter.Signature
Description
Performs cleanup operations. Call when shutting down the application.Example
isInitialized()
Check if the database is initialized.Signature
Example
Persistence Pattern
Error Handling
Related
FileStorageAdapter
File storage
RedisStorageAdapter
Redis storage
Storage Guide
Storage guide