code: def _query_from_dataframe(
      self, qdf: pd.DataFrame, top_n: int, thresh: float
  ):
      # Use the loaded featurizers to transform the dataframe
      vect, _ = self.transform(
          qdf, None, kind="nodes", return_graph=False
      )
  
      results = self.search_index.search_df(vect, self._nodes, top_n)
      results = results.query(f"{DISTANCE} < {thresh}")
  
      return results, vect
  
file_path: pygraphistry/graphistry/text_utils.py
imports: import pandas
  from .feature_utils import FeatureMixin
  from .ai_utils import search_to_df, FaissVectorSearch
  from .constants import WEIGHT, DISTANCE
  from logging import getLogger
  from typing import TYPE_CHECKING
label_desc: Use image node_id 5 for calling the SearchToGraphMixin obj's underlying member method code with example usage: obj._query_from_dataframe(qdf, top_n, thresh) and returns: results,  vect