Tree-Based Text Retrieval via Hierarchical Clustering in RAGFrameworks: Application on Taiwanese Regulations
On the map: Retrieval-augmented generation → Legal and financial RAG
Abstract (arXiv)
Traditional Retrieval-Augmented Generation (RAG) systems employ brute-force inner product search to retrieve the top-k most similar documents, then combined with the user query and passed to a language model. This allows the model to access external knowledge and reduce hallucinations. However, selecting an appropriate k value remains a significant challenge in practical applications: a small k may fail to retrieve sufficient information, while a large k can introduce excessive and irrelevant content. To address this, we propose a hierarchical clustering-based retrieval method that eliminates the need to predefine k. Our approach maintains the accuracy and relevance of system responses while adaptively selecting semantically relevant content. In the experiment stage, we applied our method to a Taiwanese legal dataset with expert-graded queries. The results show that our approach achieves superior performance in expert evaluations and maintains high precision while eliminating the need to predefine k, demonstrating improved accuracy and interpretability in legal text retrieval tasks. Our framework is simple to implement and easily integrates with existing RAG pipelines, making it a practical solution for real-world applications under limited resources.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 0 of its 1 references that are in the map. First posted on arXiv 16 Jun 2025.
Builds on
0 of 1 references.
No references here yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Cluster-based Adaptive Retrieval: Dynamic Context Selection for RAG Applications
- 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasets
- 2026Adaptive Query Routing: A Tier-Based Framework for Hybrid Retrieval Across Financial, Legal, and Medical Documents
- 2025All for law and law for all: Adaptive RAG Pipeline for Legal Research
- 2025Fishing for Answers: Exploring One-shot vs. Iterative Retrieval Strategies for Retrieval Augmented Generation
- 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain
- 2025LegalRAG: A Hybrid RAG System for Multilingual Legal Information Retrieval
- 2026Hierarchical Abstract Tree for Cross-Document Retrieval-Augmented Generation