Case Study
Newton’s Law Builds GenAI-powered POC on AWS Foundational Models and Cloud Infrastructure
Executive Summary
The Challenge
The Newton’s Law leadership team had a clear vision of what it wanted to deliver through a mobile app. They saw the GenAI advancements in the market as an opportunity to revolutionize access to legal counsel for individuals and pro se litigants. Newton’s vision is to provide comprehensive legal counsel to everyone – not just those who could afford exorbitant legal fees. Members can be informed of their legal rights and obligations within a matter of minutes. Areas of practice include criminal law, family law and civil law.
However, before pursuing a full-scale build, the company wanted to prove the merits of its idea with a more limited POC. This POC had to fulfill three specific use cases:
- Answer questions related to a moving violation
- Assist in what-if legal scenarios
- Assist in combating lawsuits
Building a GenAI experience that could accomplish all three through a seamless mobile app experience required deep cloud and GenAI expertise. Newton’s Law also wanted to move quickly and decided the optimal path involved bringing an outside consultancy that knew how to work effectively with early-stage, high-growth companies.
With more than a decade of experience building on AWS, plus the SMB and SaaS competencies, a proven history of supporting startups, and a fast-growing GenAI services practice, Clearscale checked all the boxes.
Dameon Russell,
Managing Director, Newton’s Law
The Clearscale Solution
Knowing that Newton’s Law wanted to expand on its POC, Clearscale first conducted a comprehensive review of all available technology options. Choosing the right combination of GenAI and cloud resources was crucial, as this foundation would serve as the go-forward environment for the startup’s disruptive solution.
The first key decision for the team was what large language model (LLM) to choose. Clearscale identified three solid options for the client’s use. After exploring each in detail, Clearscale chose an offered by Amazon Bedrock service. The selected LLM excels at tasks related to following instructions, generating creative content, and answering questions in a thoughtful manner.
On the database side, Clearscale identified two vector databases that would work for Newton’s Law and support a serverless approach. Because the MVP didn’t require advanced analytics in vector storage, Clearscale chose a database that offers high performance in terms of max QPS, ensuring that Newton’s Law had a simpler, faster, and less costly database in this initial rollout.
To connect the LLM to the vector database, Clearscale used the LangChain library. This functionality was critical for allowing a sequence of calls that would ultimately deliver a high-quality answer to an end user.
The final two key architecture components were:
- A Flask server to receive input from the application and handle Langchain workflows
- An Amazon EC2 machine for running Flask
Together, these elements combined to form an efficient and effective backend infrastructure for Newton’s Law’s mobile app. Each architecture decision involved careful consideration combined with subject matter expertise from Clearscale’s cloud architects. The final MVP solution struck the balance between short-term and long-term value, putting the startup in a strong position to acquire and retain customers in a fast-changing industry.
The Benefits
Thanks to Clearscale’s expert guidance and execution, Newton’s Law achieved its goals through the POC. The mobile app MVP performed well under testing on all three use cases and earned positive feedback from users. The app achieved:
- High response accuracy derived from ingested documents
- Minimization of hallucinations from the Gen AI model
- Reduced response time
- Lowered solution costs
Ready to Take the Next Step?
Connect With Our Cloud Experts To Begin Your Cloud Journey
