original_docstring: 
          Sync the data from the PSQLStorage into the FaissSearcher
  
          :param parameters: dictionary of parameters
  
              `only_delta`: whether to do delta- or snapshot-based import.
              Snapshot requires a snapshot to have been created in PSQL
              delta imports Documents one by one
  
              If Faiss has size 0, a new Faiss will be created. (if no index
              exists, delta resolving won't work)
  
              If `only_delta` is None, we try to resolve it:
              Is there a snapshot in PSQL? If so, use snapshot.
              If there isn't, use delta import
  
              `use_delta`: Whether to also import delta after a snapshot.
          
docstring: Sync the data from the PSQLStorage into the FaissSearcher
docstring_tokens: Sync the data from the PSQLStorage into the FaissSearcher
code: def sync(self, parameters: Optional[Dict], **kwargs):
          """
          Sync the data from the PSQLStorage into the FaissSearcher
  
          :param parameters: dictionary of parameters
  
              `only_delta`: whether to do delta- or snapshot-based import.
              Snapshot requires a snapshot to have been created in PSQL
              delta imports Documents one by one
  
              If Faiss has size 0, a new Faiss will be created. (if no index
              exists, delta resolving won't work)
  
              If `only_delta` is None, we try to resolve it:
              Is there a snapshot in PSQL? If so, use snapshot.
              If there isn't, use delta import
  
              `use_delta`: Whether to also import delta after a snapshot.
          """
          only_delta = parameters.get('only_delta', not self._use_snapshot())
          use_delta = parameters.get('use_delta', False)
  
          if only_delta:
              self._sync_only_delta(parameters, **kwargs)
  
          else:
              self._sync_snapshot(use_delta)
code_tokens: def sync ( self , parameters : Optional [ Dict ] , ** kwargs ) : only_delta = parameters . get ( 'only_delta' , not self . _use_snapshot ( ) ) use_delta = parameters . get ( 'use_delta' , False ) if only_delta : self . _sync_only_delta ( parameters , ** kwargs ) else : self . _sync_snapshot ( use_delta )
short_docstring: Sync the data from the PSQLStorage into the FaissSearcher
short_docstring_tokens: Sync the data from the PSQLStorage into the FaissSearcher
comment: """
          Sync the data from the PSQLStorage into the FaissSearcher
  
          :param parameters: dictionary of parameters
  
              `only_delta`: whether to do delta- or snapshot-based import.
              Snapshot requires a snapshot to have been created in PSQL
              delta imports Documents one by one
  
              If Faiss has size 0, a new Faiss will be created. (if no index
              exists, delta resolving won't work)
  
              If `only_delta` is None, we try to resolve it:
              Is there a snapshot in PSQL? If so, use snapshot.
              If there isn't, use delta import
  
              `use_delta`: Whether to also import delta after a snapshot.
          """