class_docstr: Searching by similarity.
class_docstr_tok: ["Searching","by","similarity","."]
docstr: Calls the model on the example to get the embedding.
docstr_tok: ["Calls","the","model","on","the","example","to","get","the","embedding","."]
code: def _get_embedding(
      self,
      example: types.Input,
      model: lit_model.Model,
      embedding_name: str,
  ):
      """Calls the model on the example to get the embedding."""
      model_output = model.predict([example])
      embedding = list(model_output)[0][embedding_name]
      return embedding
  
file_path: lit/lit_nlp/components/similarity_searcher.py
imports: from typing import Optional
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.components import index
  from lit_nlp.lib import utils
label_desc: Use image node_id 2 for calling the SimilaritySearcher obj's underlying member method code with example usage: obj._get_embedding(example, model, embedding_name) and returns: embedding