Home / Function/ default_get_input() — langchain Function Reference

default_get_input() — langchain Function Reference

Architecture documentation for the default_get_input() function in chain_extract.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5b84e09a_374b_576b_3517_9f6b31dc6570["default_get_input()"]
  2e222b2c_0722_08d1_e7e3_fd0f7ebca70d["chain_extract.py"]
  5b84e09a_374b_576b_3517_9f6b31dc6570 -->|defined in| 2e222b2c_0722_08d1_e7e3_fd0f7ebca70d
  style 5b84e09a_374b_576b_3517_9f6b31dc6570 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py lines 23–25

def default_get_input(query: str, doc: Document) -> dict[str, Any]:
    """Return the compression chain input."""
    return {"question": query, "context": doc.page_content}

Domain

Subdomains

Frequently Asked Questions

What does default_get_input() do?
default_get_input() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py.
Where is default_get_input() defined?
default_get_input() is defined in libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free