The code is optimized (imo) for readability, and working (albeit, quite slowly) on putting together a tutorial that walks through the motivation and implementation of HNSW.
There's also working code examples for using the library for text and image search with sentence transformers and CLIP!