RetrieverManagerMixin Class — langchain Architecture
Architecture documentation for the RetrieverManagerMixin class in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 56648039_2eaa_a31a_370d_3cf895834f0a["RetrieverManagerMixin"] aa78d849_32e0_cbe3_8323_1a62fafa0824["base.py"] 56648039_2eaa_a31a_370d_3cf895834f0a -->|defined in| aa78d849_32e0_cbe3_8323_1a62fafa0824 722e44a5_3c11_7814_34a9_614ea461defe["on_retriever_error()"] 56648039_2eaa_a31a_370d_3cf895834f0a -->|method| 722e44a5_3c11_7814_34a9_614ea461defe b2dee2fb_7298_e12f_f0f9_9d5fe38f804c["on_retriever_end()"] 56648039_2eaa_a31a_370d_3cf895834f0a -->|method| b2dee2fb_7298_e12f_f0f9_9d5fe38f804c
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 23–58
class RetrieverManagerMixin:
"""Mixin for `Retriever` callbacks."""
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.
"""
def on_retriever_end(
self,
documents: Sequence[Document],
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> Any:
"""Run when `Retriever` ends running.
Args:
documents: The documents retrieved.
run_id: The ID of the current run.
parent_run_id: The ID of the parent run.
**kwargs: Additional keyword arguments.
"""
Defined In
Source
Frequently Asked Questions
What is the RetrieverManagerMixin class?
RetrieverManagerMixin is a class in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is RetrieverManagerMixin defined?
RetrieverManagerMixin is defined in libs/core/langchain_core/callbacks/base.py at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free