class_docstr: Queries a server (eg, search engine) for a set of documents.
  
  This module relies on a running HTTP server. For each retrieval it sends the query
  to this server and receives a JSON; it parses the JSON to create the response.
class_docstr_tok: ["Queries","a","server","(","eg",",","search","engine",")","for","a","set","of","documents",".","This","module","relies","on","a","running","HTTP","server",".","For","each","retrieval","it","sends","the","query","to","this","server","and","receives","a","JSON",";","it","parses","the","JSON","to","create","the","response","."]
code: def retrieve(
      self, queries: List[str], num_ret: int = DEFAULT_NUM_TO_RETRIEVE
  ) -> List[Dict[str, Any]]:
      # TODO: update the server (and then this) for batch responses.
      return [self._retrieve_single(q, num_ret) for q in queries]
  
file_path: ParlAI/parlai/agents/rag/retrieve_api.py
imports: from abc import ABC, abstractmethod
  import requests
  from typing import Any, Dict, List
  from parlai.core.opt import Opt
  from parlai.utils import logging
label_desc: Use image node_id 5 for calling the SearchEngineRetriever obj's underlying member method code with example usage: obj.retrieve(queries, num_ret) and returns: unknown