HardCodedRetriever Class — langchain Architecture
Architecture documentation for the HardCodedRetriever class in test_runnable_events_v1.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1305e537_de88_8e5f_2b60_72505e784ad5["HardCodedRetriever"] 3a20478a_3692_141f_433b_a32429b00020["BaseRetriever"] 1305e537_de88_8e5f_2b60_72505e784ad5 -->|extends| 3a20478a_3692_141f_433b_a32429b00020 8ff41f3c_f250_f8de_8094_4f24860a10e0["test_runnable_events_v1.py"] 1305e537_de88_8e5f_2b60_72505e784ad5 -->|defined in| 8ff41f3c_f250_f8de_8094_4f24860a10e0 4603aae3_a136_071e_0d5c_f5fe8e0707c4["_get_relevant_documents()"] 1305e537_de88_8e5f_2b60_72505e784ad5 -->|method| 4603aae3_a136_071e_0d5c_f5fe8e0707c4
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py lines 1231–1238
class HardCodedRetriever(BaseRetriever):
documents: list[Document]
@override
def _get_relevant_documents(
self, query: str, *, run_manager: CallbackManagerForRetrieverRun
) -> list[Document]:
return self.documents
Extends
Source
Frequently Asked Questions
What is the HardCodedRetriever class?
HardCodedRetriever is a class in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py.
Where is HardCodedRetriever defined?
HardCodedRetriever is defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py at line 1231.
What does HardCodedRetriever extend?
HardCodedRetriever extends BaseRetriever.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free