Home / Function/ _raise_deprecation() — langchain Function Reference

_raise_deprecation() — langchain Function Reference

Architecture documentation for the _raise_deprecation() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  fa5cb2d6_a8e6_f030_8bc0_d8c64365a74f["_raise_deprecation()"]
  bc11cd5d_a081_308b_a325_0c46b7e4deb4["ChatVectorDBChain"]
  fa5cb2d6_a8e6_f030_8bc0_d8c64365a74f -->|defined in| bc11cd5d_a081_308b_a325_0c46b7e4deb4
  style fa5cb2d6_a8e6_f030_8bc0_d8c64365a74f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/conversational_retrieval/base.py lines 511–518

    def _raise_deprecation(cls, values: dict) -> Any:
        warnings.warn(
            "`ChatVectorDBChain` is deprecated - "
            "please use `from langchain_classic.chains import "
            "ConversationalRetrievalChain`",
            stacklevel=4,
        )
        return values

Subdomains

Frequently Asked Questions

What does _raise_deprecation() do?
_raise_deprecation() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/conversational_retrieval/base.py.
Where is _raise_deprecation() defined?
_raise_deprecation() is defined in libs/langchain/langchain_classic/chains/conversational_retrieval/base.py at line 511.

Analyze Your Own Codebase

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

Try Supermodel Free