class_docstr: Wrapper object for a BlockData which similarity search via FAISS under the hood
class_docstr_tok: ["Wrapper","object","for","a","BlockData","which","similarity","search","via","FAISS","under","the","hood"]
docstr: Delete existing index and create a new
docstr_tok: ["Delete","existing","index","and","create","a","new"]
code: def update_index(self):
      """Delete existing index and create a new"""
      del self.mips_index
  
      # reset the block data so that _set_mips_index will reload it as well
      if self.embed_data is not None:
          self.embed_data.load_from_file()
      self._set_mips_index()
  
imports: import itertools
  import os
  import pickle
  import shutil
  import numpy
  import torch
  from megatron import get_args
  from megatron.core import mpu
label_desc: Use image node_id 4 for calling the FaissMIPSIndex obj's underlying member method code with example usage: obj.update_index() without return types