code: def get_retro_generation(
      self,
      prompt,
      greedy,
      add_BOS,
      token_to_gen,
      min_tokens,
      temp,
      top_p,
      top_k,
      repetition,
      neighbors,
      weight,
      end_strings,
  ):
      data = {
          "sentences": [prompt],
          "tokens_to_generate": int(token_to_gen),
          "temperature": temp,
          "add_BOS": add_BOS,
          "top_k": top_k,
          "top_p": top_p,
          "greedy": greedy,
          "all_probs": False,
          "repetition_penalty": repetition,
          "min_tokens_to_generate": int(min_tokens),
          "neighbors": int(neighbors),
          "end_strings": [
              i.strip() for i in end_strings.split(",") if len(i) != 0
          ],
      }
      self.update_weight(weight)
      output_json = text_generation(
          data, self.text_service_ip, self.text_service_port
      )
      sentences = output_json["sentences"]
      retrieved = output_json["retrieved"]
      return sentences[0], convert_retrieved_to_md(retrieved)
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron_web_server.py
imports: import asyncio
  from nemo.collections.nlp.modules.common.chat_css import CSS
  from nemo.collections.nlp.modules.common.megatron.retrieval_services.util import convert_retrieved_to_md, request_data, text_generation
label_desc: Use image node_id 2 for calling the RetroDemoWebApp obj's underlying member method code with example usage: obj.get_retro_generation(prompt, greedy, add_BOS, token_to_gen, min_tokens, temp, top_p, top_k, repetition, neighbors, weight, end_strings) and returns: sentences,  convert_retrieved_to_md