_get_docs() — langchain Function Reference
Architecture documentation for the _get_docs() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5e37f7eb_ade8_88a3_3de5_5c960d049bff["_get_docs()"] 5aa1201d_23fd_f122_acb5_563cb1cc3cb3["BaseQAWithSourcesChain"] 5e37f7eb_ade8_88a3_3de5_5c960d049bff -->|defined in| 5aa1201d_23fd_f122_acb5_563cb1cc3cb3 86361fe0_0a3d_21e9_46de_f77dbc5178a8["_call()"] 86361fe0_0a3d_21e9_46de_f77dbc5178a8 -->|calls| 5e37f7eb_ade8_88a3_3de5_5c960d049bff 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05["_get_docs()"] 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05 -->|calls| 5e37f7eb_ade8_88a3_3de5_5c960d049bff 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05["_get_docs()"] 5e37f7eb_ade8_88a3_3de5_5c960d049bff -->|calls| 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05 style 5e37f7eb_ade8_88a3_3de5_5c960d049bff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/qa_with_sources/base.py lines 145–151
def _get_docs(
self,
inputs: dict[str, Any],
*,
run_manager: CallbackManagerForChainRun,
) -> list[Document]:
"""Get docs to run questioning over."""
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _get_docs() do?
_get_docs() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/qa_with_sources/base.py.
Where is _get_docs() defined?
_get_docs() is defined in libs/langchain/langchain_classic/chains/qa_with_sources/base.py at line 145.
What does _get_docs() call?
_get_docs() calls 1 function(s): _get_docs.
What calls _get_docs()?
_get_docs() is called by 2 function(s): _call, _get_docs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free