He who plants a tree, Plants a hope. Plant a tree by Lucy Larcom 🌳 Intro In this post I'm going to show you a couple of options for managing hierarchical data represented as a tree data structure. This is the natural approach when you need to implement things like: file system paths organisational charts discussion forum comments a more contemporary topic: small2big retrieval for RAG applications If you know what a graph is already, a tree is basically a graph without any cycles.