class_docstr: Provides the common interfaces for retrievers.
  
  Every retriever in this modules must implement the `retrieve` method.
class_docstr_tok: ["Provides","the","common","interfaces","for","retrievers",".","Every","retriever","in","this","modules","must","implement","the","`","retrieve","`","method","."]
docstr: Implements the underlying retrieval mechanism.
docstr_tok: ["Implements","the","underlying","retrieval","mechanism","."]
code: def retrieve(
      self, queries: List[str], num_ret: int = DEFAULT_NUM_TO_RETRIEVE
  ) -> List[Dict[str, Any]]:
      """
      Implements the underlying retrieval mechanism.
      """
  
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 2 for calling the RetrieverAPI obj's underlying member method code with example usage: obj.retrieve(queries, num_ret) without return types