Home / Function/ exists() — langchain Function Reference

exists() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  17488b35_025e_404c_b2a5_2659a944724d["exists()"]
  84fe5b79_2fbc_b61f_ca25_e76f82c76cf4["InMemoryRecordManager"]
  17488b35_025e_404c_b2a5_2659a944724d -->|defined in| 84fe5b79_2fbc_b61f_ca25_e76f82c76cf4
  56df062c_0346_c2fd_4f18_3b6a96bffe11["exists()"]
  56df062c_0346_c2fd_4f18_3b6a96bffe11 -->|calls| 17488b35_025e_404c_b2a5_2659a944724d
  e4a39f9d_8fc8_af42_118e_820519d42cd4["aexists()"]
  e4a39f9d_8fc8_af42_118e_820519d42cd4 -->|calls| 17488b35_025e_404c_b2a5_2659a944724d
  56df062c_0346_c2fd_4f18_3b6a96bffe11["exists()"]
  17488b35_025e_404c_b2a5_2659a944724d -->|calls| 56df062c_0346_c2fd_4f18_3b6a96bffe11
  style 17488b35_025e_404c_b2a5_2659a944724d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/indexing/base.py lines 330–339

    def exists(self, keys: Sequence[str]) -> list[bool]:
        """Check if the provided keys exist in the database.

        Args:
            keys: A list of keys to check.

        Returns:
            A list of boolean values indicating the existence of each key.
        """
        return [key in self.records for key in keys]

Subdomains

Calls

Called By

Frequently Asked Questions

What does exists() do?
exists() is a function in the langchain codebase, defined in libs/core/langchain_core/indexing/base.py.
Where is exists() defined?
exists() is defined in libs/core/langchain_core/indexing/base.py at line 330.
What does exists() call?
exists() calls 1 function(s): exists.
What calls exists()?
exists() is called by 2 function(s): aexists, exists.

Analyze Your Own Codebase

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

Try Supermodel Free