original_docstring: 
          `init_faiss` is determined by either being passed or
          by checking if the vec indexer (Faiss) has been initialized.
          If it has already been initialized, then init_faiss cannot be True.
          If it has NOT been initialized, then init_faiss has to be True
  
          `timestamp`. If train_faiss, then it becomes datetime.min.
          Else, we get it from self._vec_indexer.last_timestamp
  
          
docstring: `init_faiss` is determined by either being passed or
  by checking if the vec indexer (Faiss) has been initialized.
  If it has already been initialized, then init_faiss cannot be True.
  If it has NOT been initialized, then init_faiss has to be True
  
  `timestamp`. If train_faiss, then it becomes datetime.min.
docstring_tokens: ` init_faiss ` is determined by either being passed or by checking if the vec indexer ( Faiss ) has been initialized . If it has already been initialized then init_faiss cannot be True . If it has NOT been initialized then init_faiss has to be True ` timestamp ` . If train_faiss then it becomes datetime . min .
code: def _sync_only_delta(self, parameters, **kwargs):
          """
          `init_faiss` is determined by either being passed or
          by checking if the vec indexer (Faiss) has been initialized.
          If it has already been initialized, then init_faiss cannot be True.
          If it has NOT been initialized, then init_faiss has to be True
  
          `timestamp`. If train_faiss, then it becomes datetime.min.
          Else, we get it from self._vec_indexer.last_timestamp
  
          """
          timestamp = parameters.get('timestamp', None)
          init_faiss = parameters.get(
              'init_faiss', not self._vec_indexer_is_initialized()
          )
          if timestamp is None:
              if init_faiss:
                  timestamp = datetime.datetime.min
              elif self._vec_indexer.last_timestamp:
                  timestamp = self._vec_indexer.last_timestamp
              else:
                  self.logger.error(
                      f'No timestamp provided in parameters: '
                      f'"{parameters}" and vec_indexer.last_timestamp'
                      f'was None. Cannot do sync with delta'
                  )
                  return
  
          delta_updates = self._kv_indexer.get_delta_updates(
              shard_id=self.runtime_args.pea_id,
              total_shards=self.total_shards,
              timestamp=timestamp,
              filter_deleted=True if init_faiss else False,
          )
  
          if init_faiss:
              self._vec_indexer.load_from_iterator(delta_updates, FAISS_PREFETCH_SIZE)
          else:
              self._vec_indexer.add_delta_updates(delta_updates)
code_tokens: def _sync_only_delta ( self , parameters , ** kwargs ) : timestamp = parameters . get ( 'timestamp' , None ) init_faiss = parameters . get ( 'init_faiss' , not self . _vec_indexer_is_initialized ( ) ) if timestamp is None : if init_faiss : timestamp = datetime . datetime . min elif self . _vec_indexer . last_timestamp : timestamp = self . _vec_indexer . last_timestamp else : self . logger . error ( f'No timestamp provided in parameters: ' f'"{parameters}" and vec_indexer.last_timestamp' f'was None. Cannot do sync with delta' ) return delta_updates = self . _kv_indexer . get_delta_updates ( shard_id = self . runtime_args . pea_id , total_shards = self . total_shards , timestamp = timestamp , filter_deleted = True if init_faiss else False , ) if init_faiss : self . _vec_indexer . load_from_iterator ( delta_updates , FAISS_PREFETCH_SIZE ) else : self . _vec_indexer . add_delta_updates ( delta_updates )
short_docstring: `init_faiss` is determined by either being passed or
  by checking if the vec indexer (Faiss) has been initialized.
short_docstring_tokens: ` init_faiss ` is determined by either being passed or by checking if the vec indexer ( Faiss ) has been initialized .
comment: """
          `init_faiss` is determined by either being passed or
          by checking if the vec indexer (Faiss) has been initialized.
          If it has already been initialized, then init_faiss cannot be True.
          If it has NOT been initialized, then init_faiss has to be True
  
          `timestamp`. If train_faiss, then it becomes datetime.min.
          Else, we get it from self._vec_indexer.last_timestamp
  
          """