For full configuration details, parameters, and advanced options, see the Taxonomies reference.
Taxonomies
Auto-classify documents by matching them against reference collections. Two types: Flat: match each document against a single reference collection. When similarity exceeds the threshold, enrichment fields (SKU, category, label) are attached. Hierarchical: parent/child nodes with inheritance. Documents traverse levels of refinement (brand → category → subcategory) using different features at each level.When to Run
taxonomy_applications[].execution_mode only accepts materialize; on-demand and retroactive run through the other two surfaces above, each with its own request shape (see Taxonomies).
Corrections you make are kept
When you change a field’s value withPATCH or PUT /v1/collections/{collection_id}/documents/{document_id}, the next retroactive run (apply-taxonomy) leaves that field as you set it and labels the rest of the document as usual. Sending a value back unchanged is not a correction. To hand a field back to the taxonomy, set it to null in a PATCH; the next run writes it again. Reprocessing the source object replaces its documents, corrections included.
Labels the data does not confirm
A flat taxonomy gives each document its closest node, even when that node is a poor fit: a taxonomy whose only node isml would label a recipe ml. So each run compares the match scores of all the documents it labels. When the scores split into a high group and a low group with a gap of at least 0.2 between them, the documents in the low group get no label from this taxonomy, and a label an earlier run gave them is removed. When there is no such gap, or the run labels fewer than three documents, every match is kept.
Each document records the outcome under _internal, where <id> is the taxonomy ID without its tax_ prefix:
To list withheld documents, filter on
_internal._taxonomy_<id>_confirmed equal to false. The apply-taxonomy task’s stats.unconfirmed counts them. On a withheld document, an enrichment field that holds exactly the value the node would write is set to null; a field with any other value, and a field you corrected, is left alone. A taxonomy_enrich retriever stage applies the same rule to the results of each query.
Taxonomy API →
Retriever Enrichments
Attach a retriever pipeline to a collection so it runs on every new document. The retriever executes, and selected result fields are written back to the document.Annotations
Explicit human decisions with full provenance. They form the ground truth layer for compliance, review workflows, and improving retrieval quality over time.What Each Annotation Captures
Annotations are stored independently from documents and never modify the source data. Use them to build review queues, audit trails, and curated ground truth datasets.
Bulk Operations
Process review queues at scale with the bulk API:The Feedback Loop
Annotations feed directly into the platform’s learning cycle:- Annotations provide explicit ground truth for edge cases
- Learned fusion uses annotations to auto-tune retriever stage weights
- Approved annotations can be piped into reference collections, expanding your taxonomy’s coverage
- Retroactive taxonomy application reclassifies existing documents when annotations improve the reference set

