Version: latest
agrag.ingestion.client_work.enrichment.source_document_keys
source_document_keys(kind:str, graph_store:GraphStore, item:Mapping[str, object]) -> frozenset[str]
Return the document keys an item derives from.
A caller with a narrow document scope can refuse an item whose sources are outside that scope instead of applying work across documents.
Parameters:
- kind (
str) – One of the three enrichment kind names. - graph_store (
GraphStore) – Store to read. - item (
Mapping[str, object]) – A listed item with anitem_id.
Returns:
frozenset[str]– Distinct document keys backing the item.