langchain_community.retrievers.tavily_search_api.TavilySearchAPIRetriever¶
class langchain_community.retrievers.tavily_search_api.TavilySearchAPIRetriever[source]¶
Bases: BaseRetriever
Tavily Search API retriever.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param api_key: Optional[str] = None¶
param exclude_domains: Optional[List[str]] = None¶
param include_domains: Optional[List[str]] = None¶
param include_generated_answer: bool = False¶
param include_images: bool = False¶
param include_raw_content: bool = False¶
param k: int = 10¶
param kwargs: Optional[Dict[str, Any]] = {}¶
param metadata: Optional[Dict[str, Any]] = None¶
Optional metadata associated with the retriever. Defaults to None
This metadata will be associated with each call to this retriever,
and passed as arguments to the handlers defined in callbacks.
You can use these to eg identify a specific instance of a retriever with its
use case.
param search_depth: langchain_community.retrievers.tavily_search_api.SearchDepth = SearchDepth.BASIC¶
param tags: Optional[List[str]] = None¶
Optional list of tags associated with the retriever. Defaults to None
These tags will be associated with each call to this retriever,
and passed as arguments to the handlers defined in callbacks.
You can use these to eg identify a specific instance of a retriever with its
use case.
async abatch(inputs: List[Input], config: Optional[Union[RunnableConfig, List[RunnableConfig]]] = None, *, return_exceptions: bool = False, **kwargs: Optional[Any]) → List[Output]¶