Home / Class/ MyRetriever Class — langchain Architecture

MyRetriever Class — langchain Architecture

Architecture documentation for the MyRetriever class in test_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6a875ee3_8044_0056_6bc2_6b28386a5844["MyRetriever"]
  3a20478a_3692_141f_433b_a32429b00020["BaseRetriever"]
  6a875ee3_8044_0056_6bc2_6b28386a5844 -->|extends| 3a20478a_3692_141f_433b_a32429b00020
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  6a875ee3_8044_0056_6bc2_6b28386a5844 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  8d5bd17d_0055_b4e9_b44a_08c070f779ab["_get_relevant_documents()"]
  6a875ee3_8044_0056_6bc2_6b28386a5844 -->|method| 8d5bd17d_0055_b4e9_b44a_08c070f779ab

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 2248–2253

    class MyRetriever(BaseRetriever):
        @override
        def _get_relevant_documents(
            self, query: str, *, run_manager: CallbackManagerForRetrieverRun
        ) -> list[Document]:
            return [Document(page_content=f"foo {query}"), Document(page_content="bar")]

Extends

Frequently Asked Questions

What is the MyRetriever class?
MyRetriever is a class in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is MyRetriever defined?
MyRetriever is defined in libs/core/tests/unit_tests/test_tools.py at line 2248.
What does MyRetriever extend?
MyRetriever extends BaseRetriever.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free