Metadata and Provenance During Ingestion
In this article
- Design a minimal metadata envelope for one canonical document, adding a field only when a named consumer (a search filter, a citation, a display label or a diagnostic) needs it.
- Record for every field whether the source stated it, fixed code derived it or a model inferred it, and store a model-inferred value with its model, confidence and source blocks.
- Decide whether a field may be a hard search filter, and keep a model-inferred value out of hard filters and in review when its confidence is below the threshold set for that field.
- Handle a sensitive value found during ingestion by redacting it, excluding the item or restricting it before anything is indexed.
- Terms defined here: model-inferred metadata.
Overview
A customer of Brightline, a home-internet provider, asks its support assistant: "My router arrived 20 days ago. Can I still get a refund?" The help page help-refunds holds the answer, refunds within 14 days, and it was ingested correctly. Yet the assistant never sees it. The engineer who investigates finds the page tagged with the wrong topic, and nothing in the record says who tagged it. Brightline, its pages and every value below are made up.
The fix is not a better tagger. It is a rule for which fields a document carries and a record of where each value came from, so that a filter, a citation and an engineer debugging an answer know how far to trust it.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Who set this field?
- Add a field only when something reads it
- Three origins of a value
- The envelope
- Filters and display fields
- A label a model guessed
- Where a citation points
- Two timestamps
- One schema for every connector
- Sensitive values
- Common mistakes
- Sources
- Check yourself, 13 questions