Home / Function/ default_get_input() — langchain Function Reference

default_get_input() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/langchain/langchain_classic/retrievers/document_compressors/chain_filter.py lines 30–32

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_filter.py.
Where is default_get_input() defined?
default_get_input() is defined in libs/langchain/langchain_classic/retrievers/document_compressors/chain_filter.py at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free