MCPcopy Create free account
hub / github.com/microsoft/graphrag / get

Method get

packages/graphrag-cache/graphrag_cache/cache.py:23–33  ·  view source on GitHub ↗

Get the value for the given key. Args: - key - The key to get the value for. - as_bytes - Whether or not to return the value as bytes. Returns ------- - output - The value for the given key.

(self, key: str)

Source from the content-addressed store, hash-verified

21
22 @abstractmethod
23 async def get(self, key: str) -> Any:
24 """Get the value for the given key.
25
26 Args:
27 - key - The key to get the value for.
28 - as_bytes - Whether or not to return the value as bytes.
29
30 Returns
31 -------
32 - output - The value for the given key.
33 """
34
35 @abstractmethod
36 async def set(self, key: str, value: Any, debug_data: dict | None = None) -> None:

Callers 15

_recursive_merge_dictsFunction · 0.45
from_listMethod · 0.45
build_text_unit_contextFunction · 0.45
build_entity_contextFunction · 0.45
build_covariates_contextFunction · 0.45
_report_context_textFunction · 0.45
searchMethod · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected