Version: latest
agrag.ingestion.client_work.enrichment.apply_enrichment_item
apply_enrichment_item(kind:str, graph_store:GraphStore, *, item_id:str, content_version:str, output:object, schema:GraphSchema | None = None, embedder:Embedder | None = None, vector_sync:VectorSync | None = None) -> ItemOutcome
Apply one client result for an enrichment kind.
Parameters:
- kind (
str) – One of the three enrichment kind names. - graph_store (
GraphStore) – Store holding the item. - item_id (
str) – The id the client received in its pending batch. - content_version (
str) – The version the client received for that item. - output (
object) – The client's result. - schema (
GraphSchema | None) – Required for match and community work. - embedder (
Embedder | None) – Required for description and community work. - vector_sync (
VectorSync | None) – Mirrors applied descriptions and reports into the external vector store when set.
Returns:
ItemOutcome– The durable outcome for the item.