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
  4a10cb6c_c1d3_3564_10c0_9e6d7abecc05["_get_docs()"]
  e4f7f49b_0535_9083_f037_071fa164fd67["QAWithSourcesChain"]
  4a10cb6c_c1d3_3564_10c0_9e6d7abecc05 -->|defined in| e4f7f49b_0535_9083_f037_071fa164fd67
  5e37f7eb_ade8_88a3_3de5_5c960d049bff["_get_docs()"]
  5e37f7eb_ade8_88a3_3de5_5c960d049bff -->|calls| 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05
  5e37f7eb_ade8_88a3_3de5_5c960d049bff["_get_docs()"]
  4a10cb6c_c1d3_3564_10c0_9e6d7abecc05 -->|calls| 5e37f7eb_ade8_88a3_3de5_5c960d049bff
  style 4a10cb6c_c1d3_3564_10c0_9e6d7abecc05 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/qa_with_sources/base.py lines 238–245

    def _get_docs(
        self,
        inputs: dict[str, Any],
        *,
        run_manager: CallbackManagerForChainRun,
    ) -> list[Document]:
        """Get docs to run questioning over."""
        return inputs.pop(self.input_docs_key)

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/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 238.
What does _get_docs() call?
_get_docs() calls 1 function(s): _get_docs.
What calls _get_docs()?
_get_docs() is called by 1 function(s): _get_docs.

Analyze Your Own Codebase

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

Try Supermodel Free