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 search filter, and keep a model-inferred value out of hard filters 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 search filter that says "refund pages only" is only as good as the label it filters on. If nobody knows who wrote that label, nobody can tell whether to trust it, and nobody can find out why the right page never showed up.
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. Before the assistant can search them, Brightline's help pages, router manuals, staff handbook and past conversations are read from the systems where they are kept and turned into documents that a search index can take. The company, its pages and every value below are made up.
Which fields belong with one document, and how do you record where each value came from, so that a filter, a citation and an engineer can trust them?
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