MCPcopy
hub / github.com/langchain-ai/langchain / exists

Method exists

libs/core/langchain_core/indexing/base.py:141–149  ·  view source on GitHub ↗

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.

(self, keys: Sequence[str])

Source from the content-addressed store, hash-verified

139
140 @abstractmethod
141 def exists(self, keys: Sequence[str]) -> List[bool]:
142 """Check if the provided keys exist in the database.
143
144 Args:
145 keys: A list of keys to check.
146
147 Returns:
148 A list of boolean values indicating the existence of each key.
149 """
150
151 @abstractmethod
152 async def aexists(self, keys: Sequence[str]) -> List[bool]:

Callers 14

load_ts_git_datasetFunction · 0.45
load_ts_git_datasetFunction · 0.45
chain.pyFile · 0.45
normalizeMethod · 0.45
test_existsFunction · 0.45
indexFunction · 0.45
get_package_rootFunction · 0.45
update_repoFunction · 0.45
newFunction · 0.45
addFunction · 0.45
removeFunction · 0.45
test_drawMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_existsFunction · 0.36
test_drawMethod · 0.36