class_docstr: This class extracts a number of basic text descriptives from FeedbackDataset
  records using the TextDescriptives library and adds them as record metadata.
docstr: Encode a single field in the records with vectors.
  
  Args:
      records (List[Union[RemoteFeedbackRecord, FeedbackRecord]]): The list of records to encode.
      field (str): The field to encode.
      overwrite (bool): Whether to overwrite existing vectors for the field.
      **kwargs: Additional keyword arguments.
  
  Returns:
      List[Union[FeedbackRecord, RemoteFeedbackRecord]]: The updated list of records.
docstr_tok: ["Encode","a","single","field","in","the","records","with","vectors",".","Args",":","records","(","List","[","Union","[","RemoteFeedbackRecord",",","FeedbackRecord","]","]",")",":","The","list","of","records","to","encode",".","field","(","str",")",":","The","field","to","encode",".","overwrite","(","bool",")",":","Whether","to","overwrite","existing","vectors","for","the","field",".","*","*","kwargs",":","Additional","keyword","arguments",".","Returns",":","List","[","Union","[","FeedbackRecord",",","RemoteFeedbackRecord","]","]",":","The","updated","list","of","records","."]
code: def _encode_single_field(
      self,
      records: List[Union[RemoteFeedbackRecord, FeedbackRecord]],
      field: str,
      overwrite: bool,
      **kwargs,
  ) -> List[Union[FeedbackRecord, RemoteFeedbackRecord]]:
      """
      Encode a single field in the records with vectors.
  
      Args:
          records (List[Union[RemoteFeedbackRecord, FeedbackRecord]]): The list of records to encode.
          field (str): The field to encode.
          overwrite (bool): Whether to overwrite existing vectors for the field.
          **kwargs: Additional keyword arguments.
  
      Returns:
          List[Union[FeedbackRecord, RemoteFeedbackRecord]]: The updated list of records.
      """
      texts = []
      idxs = []
      # only
      for idx, record in enumerate(records):
          text = record.fields.get(field)
          if text:
              if field in record.vectors:
                  if overwrite:
                      texts.append(text)
                      idxs.append(idx)
                  else:
                      continue
              else:
                  texts.append(text)
                  idxs.append(idx)
      vectors = self.model.encode(
          texts, show_progress_bar=self.show_progress, **kwargs
      )
      for idx, vector in zip(idxs, vectors):
          records[idx].vectors[field] = vector.tolist()
      return records
  
file_path: argilla/src/argilla/client/feedback/integrations/sentencetransformers.py
imports: import warnings
  from typing import List, Optional, Union
  from argilla.client.feedback.dataset.local.dataset import FeedbackDataset
  from argilla.client.feedback.dataset.remote.dataset import RemoteFeedbackDataset
  from argilla.client.feedback.schemas.records import FeedbackRecord
  from argilla.client.feedback.schemas.remote.records import RemoteFeedbackRecord
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
  from argilla.utils.dependency import require_dependencies
label_desc: Use image node_id 3 for calling the SentenceTransformersExtractor obj's underlying member method code with example usage: obj._encode_single_field(records, field, overwrite) and returns: records