Home / Function/ _get_docs() — langchain Function Reference

_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
  76742b46_481d_4a3f_d102_75a96ccd6564["_get_docs()"]
  067cfac1_b090_9798_c632_0f6eaea72669["RetrievalQA"]
  76742b46_481d_4a3f_d102_75a96ccd6564 -->|defined in| 067cfac1_b090_9798_c632_0f6eaea72669
  811cffbd_8a9c_6a62_d725_9323fb07755c["_get_docs()"]
  811cffbd_8a9c_6a62_d725_9323fb07755c -->|calls| 76742b46_481d_4a3f_d102_75a96ccd6564
  39b2c44c_a865_2cd7_07db_5daf7ba84304["_call()"]
  39b2c44c_a865_2cd7_07db_5daf7ba84304 -->|calls| 76742b46_481d_4a3f_d102_75a96ccd6564
  811cffbd_8a9c_6a62_d725_9323fb07755c["_get_docs()"]
  76742b46_481d_4a3f_d102_75a96ccd6564 -->|calls| 811cffbd_8a9c_6a62_d725_9323fb07755c
  style 76742b46_481d_4a3f_d102_75a96ccd6564 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/retrieval_qa/base.py lines 268–278

    def _get_docs(
        self,
        question: str,
        *,
        run_manager: CallbackManagerForChainRun,
    ) -> list[Document]:
        """Get docs."""
        return self.retriever.invoke(
            question,
            config={"callbacks": run_manager.get_child()},
        )

Subdomains

Calls

Called By

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 268.
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