class_docstr: Indexing system for UniSim that uses Usearch
  (https://github.com/unum-cloud/usearch) for both exact and approximate
  nearest neighbor (ANN) search. This enables us to efficiently index and
  find the nearest neighbors of embedding vectors.
  
  We strongly recommend using ANN search if the size of the dataset you
  are indexing or searching over is large, since it will provide a
  substantial speed up. Using exact search guarantees that you return the
  correct nearest neighbors every single time.
class_docstr_tok: ["Indexing","system","for","UniSim","that","uses","Usearch","(","https",":","\/\/github.com\/unum-cloud\/usearch",")","for","both","exact","and","approximate","nearest","neighbor","(","ANN",")","search",".","This","enables","us","to","efficiently","index","and","find","the","nearest","neighbors","of","embedding","vectors",".","We","strongly","recommend","using","ANN","search","if","the","size","of","the","dataset","you","are","indexing","or","searching","over","is","large",",","since","it","will","provide","a","substantial","speed","up",".","Using","exact","search","guarantees","that","you","return","the","correct","nearest","neighbors","every","single","time","."]
docstr: Reload index data from save directory and recreate the index
  with the underlying data.
  
  Args:
      path: Directory where the indexer was saved.
  
  Returns:
      Initialized indexer from save directory.
docstr_tok: ["Reload","index","data","from","save","directory","and","recreate","the","index","with","the","underlying","data",".","Args",":","path",":","Directory","where","the","indexer","was","saved",".","Returns",":","Initialized","indexer","from","save","directory","."]
code: def load(self, path: Path | str):
      """Reload index data from save directory and recreate the index
      with the underlying data.
  
      Args:
          path: Directory where the indexer was saved.
  
      Returns:
          Initialized indexer from save directory.
      """
      if self.use_exact:
          with open(self._save_pickle_path(path), "rb") as f:
              data = pickle.load(f)
          self.embeddings = data[0]
          self.idxs = data[1]
      else:
          self.index.load(self._save_usearch_path(path))
  
file_path: unisim/unisim/indexer.py
imports: from __future__ import annotations
  import pickle
  from collections import defaultdict
  from pathlib import Path
  from typing import Any, Dict, List, Sequence
  import numpy
  from usearch.index import BatchMatches, Index, MetricKind, search
  from .dataclass import Match, Result, ResultCollection
  from .enums import IndexerType
  from .types import BatchEmbeddings
label_desc: Use image node_id 6 for calling the Indexer obj's underlying member method code with example usage: obj.load(path) without return types