parameters: (self, index_data, pool, distance)
docstring: Load index from bytes.
  
          Parameters
          ----------
          index_data : bytes
              Index binary data.
  
          pool : Pool
              Pool of vectors for which index will be loaded.
  
          distance : EDistance
              Distance that should be used for finding nearest vectors.
docstring_summary: Load index from bytes.
docstring_tokens: Load index from bytes .
function: def load_from_bytes(self, index_data, pool, distance):
          """
          Load index from bytes.
  
          Parameters
          ----------
          index_data : bytes
              Index binary data.
  
          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_from_bytes(index_data)
          self._data = index_data
function_tokens: def load_from_bytes ( self , index_data , pool , distance ) : self . _index = _HnswDenseVectorIndex [ pool . dtype ] ( pool . _storage , distance ) self . _index . _load_from_bytes ( index_data ) self . _data = index_data