Walk me through how you would design a RAG system to query thousands of dense legal documents for a Berkeley Research Group consulting engagement.