Async Enrichment
Postgram writes entities first, then enriches them in the background.
What this page covers
Section titled “What this page covers”This page explains the lifecycle of enrichment jobs, status flags, and what to expect when waiting for embeddings, extraction, or searchability.
Core workflow
Section titled “Core workflow”- Store or update an entity.
- The worker enqueues enrichment tasks with
enrichment_status = pending. - The system creates chunks and embeddings for semantic retrieval.
- Optional LLM extraction may enrich entity relationships.
- Enrichment completion updates status to
completed; failures becomefailed.
You can inspect queue health from:
pgm queueand from REST:
curl http://127.0.0.1:3100/api/queue -H "Authorization: Bearer $PGM_API_KEY"- Failed jobs are retried up to 3 times with a 5-minute backoff.
- Search may succeed without enriched content first, then return richer matches once enrichment finishes.
- Requeue or maintenance commands are available via
pgm-adminfor bulk recovery.