on_retriever_error() — langchain Function Reference
Architecture documentation for the on_retriever_error() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f4bb9721_cab3_87da_fc29_c0bcd7c4803c["on_retriever_error()"] 2ae8b961_1d1c_dfc1_f084_03c3a285b94a["RetrieverManagerMixin"] f4bb9721_cab3_87da_fc29_c0bcd7c4803c -->|defined in| 2ae8b961_1d1c_dfc1_f084_03c3a285b94a 1f1d4604_af1e_59ab_97fe_df8def129521["on_retriever_error()"] 1f1d4604_af1e_59ab_97fe_df8def129521 -->|calls| f4bb9721_cab3_87da_fc29_c0bcd7c4803c 1f1d4604_af1e_59ab_97fe_df8def129521["on_retriever_error()"] f4bb9721_cab3_87da_fc29_c0bcd7c4803c -->|calls| 1f1d4604_af1e_59ab_97fe_df8def129521 style f4bb9721_cab3_87da_fc29_c0bcd7c4803c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 26–41
def on_retriever_error(
self,
error: BaseException,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> Any:
"""Run when `Retriever` errors.
Args:
error: The error that occurred.
run_id: The ID of the current run.
parent_run_id: The ID of the parent run.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does on_retriever_error() do?
on_retriever_error() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is on_retriever_error() defined?
on_retriever_error() is defined in libs/core/langchain_core/callbacks/base.py at line 26.
What does on_retriever_error() call?
on_retriever_error() calls 1 function(s): on_retriever_error.
What calls on_retriever_error()?
on_retriever_error() is called by 1 function(s): on_retriever_error.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free