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
Related terms
Definitions that connect to this one.
Parallel beam searchKeep the top-k branches at each taxonomy level instead of only the winner, so a wrong first choice can still be recovered.PatternsChoicePick one option from a set you define; returns the selected option, a probability for every option, and confidence.PrimitivesSecond requestA follow-up call that is only justified when code cannot build the second request until it has the first answer.PatternsLine-by-line searchRank every line of a document in one request with a Choice, while a Noul checks whether the document contains an answer at all.Patterns
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.