Organizing labels
Create labels in your organization’s catalog:PATCH endpoint updates only
description. Labels in the catalog are reusable: multiple workspaces can
include the same label.
Workspace-level labels
When you create a workspace, you freeze a subset of your organization’s label catalog as the workspace’s allowed set:default_label is applied to files uploaded without an explicit label.
File-level labels
When you upload a file into a workspace, assign labels from the allowed set via themetadata JSON form field:
Coverage reporting
Every tool and query response includescoverage — how many candidates were
withheld by the access predicate and which labels would unlock them:
restricted_candidates— Files visible in scope but withheld by your key’s access predicate.labels_required— Labels your key would need to see the withheld files.
Your key’s scope
An API key’s access predicate is set when the key is created. When you call a tool in a workspace, the API filters results to files visible to your key and returnscoverage describing what was withheld.
Labels use AND logic: a file is visible only if all of the key’s required
visibility labels are present on the file.
Label catalog management
List labels:Automatic classification at ingestion
When a workspace declares labels, NDI automatically classifies each logical document produced during ingestion using the label descriptions as prompts. How it works:- After a document file is parsed and split into logical documents, a classification step reads each document’s markdown content.
- An LLM call compares the content against your label descriptions and assigns
the best matching label — or marks the document as intentionally unlabelled
(
nulllabel, visible to everyone) when no label fits. - If classification fails for any reason, the document falls back to
default_labelso ingestion always completes.