Converts an HNSW index to a base64 encoded string.
The HNSW index object.
A promise that resolves to a base64 encoded string representation of the index.
If there's an error during the index serialization process.
Converts an HNSW index to a base64 encoded string.