Skip to content

Jev glossary

PatternsDeep taxonomy

Hierarchical classification

Walk a deep taxonomy level by level, using each Choice answer to pick the next level's options, keeping several paths alive.
Category
Patterns
Also known as
Deep taxonomy
Reading time
1 min
Related terms
4
Directory entries
2
Docs
docs.typesafe.ai
Added
2026-09-24

Definition

The cookbook classifies documents through deep patent, retail product, biomedical, and source-code hierarchies. Instead of flattening a taxonomy into one 255-option Choice, each level is its own question and the winner's children become the next request's options.

The trade-off is round trips versus option count: a level-by-level walk keeps every candidate path available in one call per level, which is why it is paired with beam search to avoid committing too early.

Tagspatternsclassification

From the Jev directory

Directory entries that go deeper on this term.

Classify documents through deep patent, retail product, biomedical, and source-code hierarchies using parallel beam search over Choice probabilities.
Jev CookbooksDocs#official#cookbook#classification
Official
The three TypeSafe question types, the typed answers they return, how to choose between them, and how to ask several in a single call.
Jev Practices & PatternsDocs#official#primitives#choice
Official

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai