Imports an HNSW index from a string representation.
The string representation of the HNSW index.
The dimensionality of the vectors in the index.
The space type of the index (e.g., 'l2', 'ip', 'cosine').
A promise that resolves to the imported HNSW index object.
Imports an HNSW index from a string representation.