class_docstr: Class for building, loading and working with Hierarchical Navigable Small World index.
class_docstr_tok: ["Class","for","building",",","loading","and","working","with","Hierarchical","Navigable","Small","World","index","."]
docstr: Load index from file.
  
  Parameters
  ----------
  index_path : string
      Path to file for loading index.
  
  pool : Pool
      Pool of vectors for which index will be loaded.
  
  distance : EDistance
      Distance that should be used for finding nearest vectors.
docstr_tok: ["Load","index","from","file",".","Parameters","--","--","--","--","--","index_path",":","string","Path","to","file","for","loading","index",".","pool",":","Pool","Pool","of","vectors","for","which","index","will","be","loaded",".","distance",":","EDistance","Distance","that","should","be","used","for","finding","nearest","vectors","."]
code: def load(self, index_path, pool, distance):
      """
      Load index from file.
  
      Parameters
      ----------
      index_path : string
          Path to file for loading index.
  
      pool : Pool
          Pool of vectors for which index will be loaded.
  
      distance : EDistance
          Distance that should be used for finding nearest vectors.
      """
      self._index = _HnswDenseVectorIndex[pool.dtype](
          pool._storage, distance
      )
      self._index._load(index_path)
      self._data = None
  
imports: import sys
  import os
  from six import iteritems
  from enum import IntEnum
  from contextlib import contextmanager
  import json
label_desc: Use image node_id 5 for calling the Hnsw obj's underlying member method code with example usage: obj.load(index_path, pool, distance) without return types