Building A Legal RAG App in 36 Hours | Weaviate

This post details the architecture and implementation of a legal RAG application built in 36 hours using Weaviate's Query Agent. It highlights the use of multimodal PDF ingestion with Muvera compression for page-level encoding, and the organization of data into three distinct collections (Commercial Agreements, Corporate & IP Agreements, Operational Agreements) to facilitate agentic routing. The Query Agent's 'Search Mode' and 'Ask Mode' are showcased for discovery and answer synthesis, respectively, with results streamed back with cited source passages. The post also provides a detailed prompt for building a similar application using the CUAD dataset and outlines critical implementation notes for the Weaviate client, dependency injection, and the sources endpoint.