Is Implicit Knowledge Enough for LLMs? A RAG Approach for Tree-based Structures