code: def retrieve(self, s):
          
          all_sim = []
          use_max_n = self.max_n is not None
          for comparison_string in self._get_comparison_strings(s):
              if self.comparison_func(s, comparison_string) >= self.cutoff:
                  all_sim.append(comparison_string)
                  if use_max_n and len(all_sim) >= self.max_n:
                      return all_sim
          return all_sim
docs: Retrieve all similar strings from the DB.
  
          :param s: str, string to check against the DB.
          :return: list of all similar strings.
          :rtype: list