Retrieval

Cross-layer linking

How authoritative documents and experiential facts relate in the unified graph.

Authoritative and experiential memory live in one graph. Document extraction and turn extraction both produce entity, attribute, and relation records. Provenance (source.kind, source.ref, source.span) records whether a fact came from a document or a turn.

Same entity, multiple sources. When a user mentions “AirPods Pro” in chat and the product manual is uploaded as a document, extraction may create or update the same entity (for example Product/airpods_pro) with:

  • Turn-sourced attributes (source.kind = "turn") — “purchased last week”

  • Document-sourced attributes (source.kind = "document") — “return_policy = 30 days”

The reconciler applies authority and calibration rules: cross-provenance conflicts emit uncertainty records instead of silent overwrites; same-provenance updates form supersession chains (valid_until on the prior assertion).

Unified recall. POST /api/v1/{ctx}/query ranks across facts and document passages in one router (structured lookup → response cache → hybrid retrieval → full-context fallback). Filter with include (facts vs passages) when you need a narrower slice.

Elaboration. Background elaboration can add relation edges between entities ingested from different sources but sharing context.

TaskApproach
Ground an agent on manualsUpload documents; recall with /query
Capture conversationPOST /facts or /facts/batch
Prefer curated policy over chat hearsayTrust and confidence floors; higher default trust for documents
Debug a conflictInspect uncertainty records and entity history
GET /api/v1/{context_id}/entities/{entity_type}/{entity_name}
DELETE /api/v1/{context_id}/entities/{entity_type}/{entity_name}

Two streams in one store are described in Unified substrate and authority.

Was this page helpful?