_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 811cffbd_8a9c_6a62_d725_9323fb07755c["_get_docs()"] 1cb458d9_f8c6_d78d_c1e3_79a8b3106c08["BaseRetrievalQA"] 811cffbd_8a9c_6a62_d725_9323fb07755c -->|defined in| 1cb458d9_f8c6_d78d_c1e3_79a8b3106c08 39b2c44c_a865_2cd7_07db_5daf7ba84304["_call()"] 39b2c44c_a865_2cd7_07db_5daf7ba84304 -->|calls| 811cffbd_8a9c_6a62_d725_9323fb07755c 76742b46_481d_4a3f_d102_75a96ccd6564["_get_docs()"] 76742b46_481d_4a3f_d102_75a96ccd6564 -->|calls| 811cffbd_8a9c_6a62_d725_9323fb07755c 35e82f85_1285_ad0d_4671_a9fd56e39900["_get_docs()"] 35e82f85_1285_ad0d_4671_a9fd56e39900 -->|calls| 811cffbd_8a9c_6a62_d725_9323fb07755c 76742b46_481d_4a3f_d102_75a96ccd6564["_get_docs()"] 811cffbd_8a9c_6a62_d725_9323fb07755c -->|calls| 76742b46_481d_4a3f_d102_75a96ccd6564 style 811cffbd_8a9c_6a62_d725_9323fb07755c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/retrieval_qa/base.py lines 121–127
def _get_docs(
self,
question: str,
*,
run_manager: CallbackManagerForChainRun,
) -> list[Document]:
"""Get documents to do question answering 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/retrieval_qa/base.py.
Where is _get_docs() defined?
_get_docs() is defined in libs/langchain/langchain_classic/chains/retrieval_qa/base.py at line 121.
What does _get_docs() call?
_get_docs() calls 1 function(s): _get_docs.
What calls _get_docs()?
_get_docs() is called by 3 function(s): _call, _get_docs, _get_docs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free