It was the first algorithm that the k-NN plugin supported, using a very efficient implementation from the nmslib similarity search library. . The search index in HNSW is a multi-layered structure where each layer is a proximity graph. An HNSW index consists of navigable small world graphs in a hierarchy. C2C K .