Reproduce “All for law and law for all: Adaptive RAG Pipeline for Legal Research” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Figarri Keisha, Prince Singh, Pallavi, Dion Fernandes, Aravindh Manivannan, Ilham Wicaksono, Faisal Ahmad, Wiem Ben Rim
Researchers from University College London developed an adaptive Retrieval-Augmented Generation (RAG) pipeline to enhance the reliability of AI for legal research. The system, utilizing open-source components like SBERT embeddings and Recursive Text Character Split (RCTS) chunking, matched or exceeded the retrieval performance of proprietary models and dynamically tailored response generation based on user expertise and query specificity.
Key insights
- Open-source embedding models, particularly SBERT, can achieve retrieval performance comparable to or superior to proprietary solutions like OpenAI's text-embedding-3-large in legal research.
- An adaptive query translation module, which categorizes user expertise and query specificity, is effective in dynamically tailoring retrieval depth and response style for enhanced user experience.
- Standard RAG evaluation metrics (e.g., RAGAS Answer Relevancy with its "non-committal" multiplier, ROUGE-Recall) may not accurately reflect semantic quality in abstractive legal text generation, necessitating context-aware metrics like BERTScore-F1.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.