Bridging Legal Knowledge and AI: Retrieval-Augmented Generation with Vector Stores, Knowledge Graphs, and Hierarchical Non-negative Matrix Factorization
On the map: Retrieval-augmented generation → Legal and financial RAG
also in 1 more
Abstract (arXiv)
Agentic Generative AI, powered by Large Language Models (LLMs) with Retrieval-Augmented Generation (RAG), Knowledge Graphs (KGs), and Vector Stores (VSs), represents a transformative technology applicable to specialized domains such as legal systems, research, recommender systems, cybersecurity, and global security, including proliferation research. This technology excels at inferring relationships within vast unstructured or semi-structured datasets. The legal domain here comprises complex data characterized by extensive, interrelated, and semi-structured knowledge systems with complex relations. It comprises constitutions, statutes, regulations, and case law. Extracting insights and navigating the intricate networks of legal documents and their relations is crucial for effective legal research. Here, we introduce a generative AI system that integrates RAG, VS, and KG, constructed via Non-Negative Matrix Factorization (NMF), to enhance legal information retrieval and AI reasoning and minimize hallucinations. In the legal system, these technologies empower AI agents to identify and analyze complex connections among cases, statutes, and legal precedents, uncovering hidden relationships and predicting legal trends-challenging tasks that are essential for ensuring justice and improving operational efficiency. Our system employs web scraping techniques to systematically collect legal texts, such as statutes, constitutional provisions, and case law, from publicly accessible platforms like Justia. It bridges the gap between traditional keyword-based searches and contextual understanding by leveraging advanced semantic representations, hierarchical relationships, and latent topic discovery. This framework supports legal document clustering, summarization, and cross-referencing, for scalable, interpretable, and accurate retrieval for semi-structured data while advancing computational law and AI.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 28 of its 65 references that are in the map. First posted on arXiv 27 Feb 2025.
Builds on
28 of 65 references.
Closest ancestors · 2
Same direction, newest first
- 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain19 Aug
- 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answering4 Apr
Other references · 26
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2019Evaluating the Factual Consistency of Abstractive Text Summarizationcited by 578
- 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 426
- 2021SummaC: Re-Visiting NLI-based Models for Inconsistency Detection in Summarizationcited by 402
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2019Neural Legal Judgment Prediction in Englishcited by 208
14 more
- 2020LEGAL-BERT: The Muppets straight out of Law Schoolcited by 111
- 2022Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddingscited by 75
- 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
- 2024When to Retrieve: Teaching LLMs to Utilize Information Retrieval Effectivelycited by 20
- 2024Domain-Specific Retrieval-Augmented Generation Using Vector Stores, Knowledge Graphs, and Tensor Factorizationcited by 15
- 2021Computer-Assisted Creation of Boolean Search Rules for Text Classification in the Legal Domaincited by 12
- 2022KALM: Knowledge-Aware Integration of Local, Document, and Global Contexts for Long Document Understandingcited by 9
- 2021Similar Cases Recommendation using Legal Knowledge Graphscited by 8
- 2021Unsupervised Identification of Relevant Prior Casescited by 4
- 2022Guided Semi-Supervised Non-negative Matrix Factorization on Legal Documentscited by 4
- 2024Automatic Knowledge Graph Construction for Judicial Casescited by 3
- 2024TopicTag: Automatic Annotation of NMF Topic Models Using Chain of Thought and Prompt Tuning with LLMscited by 3
- 2021Analysis of Legal Documents via Non-negative Matrix Factorization Methodscited by 2
- 2024Binary Bleed: Fast Distributed and Parallel Method for Automatic Model Selectioncited by 2
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025NyayaRAG: Realistic Legal Judgment Prediction with RAG under the Indian Common Law Systemcited by 5
- 2026Exploring Knowledge Conflicts for Faithful LLM Reasoning: Benchmark and Methodcited by 4
- 2025An Ontology-Driven Graph RAG for Legal Norms: A Structural, Temporal, and Deterministic Approachcited by 3
- 2025When Large Language Models Meet Law: Dual-Lens Taxonomy, Technical Advances, and Ethical Governancecited by 3
- 2026Temporal Decay of Co-Citation Predictability: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citationscited by 2
- 2025Build AI Assistants using Large Language Models and Agents to Enhance the Engineering Education of Biomechanicscited by 1
- 2026Towards Intelligent Legal Document Analysis: CNN-Driven Classification of Case Law Textscited by 0
- 2026Retrieval-Augmented Large Language Models as Components of Cognitive Computing architecture for Regulatory Knowledge Managementcited by 0
- 2026Retrieval-Augmented Large Language Models as Components of Cognitive Computing architecture for Regulatory Knowledge Management27 Jul 2026
- 2026Temporal Decay of Co-Citation Predictability: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citations17 May 2026
- 2026Towards Intelligent Legal Document Analysis: CNN-Driven Classification of Case Law Texts20 Apr 2026
- 2026Exploring Knowledge Conflicts for Faithful LLM Reasoning: Benchmark and Method13 Apr 2026
- 2025Build AI Assistants using Large Language Models and Agents to Enhance the Engineering Education of Biomechanics19 Nov 2025
- 2025NyayaRAG: Realistic Legal Judgment Prediction with RAG under the Indian Common Law System1 Aug 2025
- 2025When Large Language Models Meet Law: Dual-Lens Taxonomy, Technical Advances, and Ethical Governance10 Jul 2025
- 2025An Ontology-Driven Graph RAG for Legal Norms: A Structural, Temporal, and Deterministic Approach29 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Domain-Partitioned Hybrid RAG for Legal Reasoning: Toward Modular and Explainable Legal AI for India
- 2026Falkor-IRAC: Graph-Constrained Generation for Verified Legal Reasoning in Indian Judicial AI
- 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications
- 2026NyayaAI: An AI-Powered Legal Assistant Using Multi-Agent Architecture and Retrieval-Augmented Generation
- 2026Beyond Probabilistic Similarity: Structural, Temporal, and Causal Limitations of Retrieval-Augmented Generation in the Legal Domain
- 2026LegalGraphRAG: Multi-Agent Graph Retrieval-Augmented Generation for Reliable Legal Reasoning
- 2026From Norms to Indicators (N2I-RAG): An Agentic Retrieval-Augmented Generation Framework for Legal Indicator Computation
- 2024Experimenting with Legal AI Solutions: The Case of Question-Answering for Access to Justice