AnnouncementMongoDB 9.0: The best version of MongoDB ever built. Read more >  >>
AnnouncementMeet the intelligent data platform built for the AI era. Read more > >>
MongoDB.localStream MongoDB.local NYC starting at 9 a.m. ET on Sept 30 Learn more > >>

Squary AI Slashes Legal Review Times with Atlas

A photo of the company's employees.

Their Challenge

Squary AI’s split database and search setup led to 15-second query lag, high costs, outages, and limited visibility.

Our Solution

Squary AI consolidated search and vector search onto MongoDB Atlas within days, enabling hybrid retrieval and retrieval-augmented generation.

Outcome

Squary AI now handles 10 times the data for less cost, with single-digit query times, zero outages, and up to 70% faster document review.

industry_enterprise

Industry

Professional Services

Computer Software & Technology

atlas_product_family

Product

MongoDB Atlas

MongoDB Search on Atlas

MongoDB Vector Search on Atlas

atlas_for_edge

Use Case

Gen AI

Migrations

THEIR CHALLENGE

Losing Time and Money to a Fragmented Search Architecture

Squary AI is an AI-powered legal platform that learns how a firm produces legal work and applies that expertise consistently across the organization. It generates summaries, chronologies, deposition prep, and hearing memos from large, complex document sets, with every output source-linked to page-level citations attorneys can verify.

For years, Squary AI ran its core database on MongoDB Atlas but handled text and vector search through a separate, complex deployment of OpenSearch Service (Elasticsearch) on AWS. That split created mounting problems. “For OpenSearch, we were experiencing up to 15 seconds of query lag, and that’s on top of OpenSearch being more expensive. So, the price-to-performance ratio was not that great,” said Justin Waltrip, Co-founder of Squary AI.

The instability went beyond slow queries. OpenSearch failed to scale reliably under high usage, causing production outages. Because attorneys depend on Squary AI for active casework, any downtime meant lost access. With billing rates of $200 to $400 per hour and 20 to 25 hours of review work per case, a single day of downtime across multiple client firms represented tens of thousands of dollars in delayed billable work and missed deadlines. When known bugs surfaced, the only recourse was to wait for support, which could take up to 24 hours to respond. In legal workflows, that delay is a liability.

Running a separate search database also added architectural complexity. Visibility into metrics was limited, and the team received no advance warning when the system needed to scale. Inspecting raw data was its own hurdle; engineers had to route through an extra layer of secured infrastructure to reach the data behind it. “Structurally and architecturally, it was significantly more complicated than having everything in MongoDB,” Waltrip said.

 

OUR SOLUTION

Using MongoDB Search and Vector Search on Atlas for Squary AI

Squary AI migrated its entire search component to MongoDB Atlas, consolidating its core database, text search, and vector search into a single unified platform. With every hour of downtime translating into delayed billable work for client firms, a fast, low-disruption migration was essential. “The migration was surprisingly fast; we adapted our code in a matter of days,” Waltrip said.

The migration itself required no restructuring or rewriting of schemas. The flexible schema design of MongoDB let the team index existing collections directly, and a dual-write period enabled Squary AI to validate results before fully migrating. The entire effort required minimal code changes relative to the architectural lift it delivered, collapsing two systems and two vendor relationships into one.

Using MongoDB Search and MongoDB Vector Search on Atlas, Squary AI built a hybrid retrieval approach that combines embeddings with full-text similarity to deliver highly relevant search results. That architecture powers retrieval-augmented generation with large language models, including Claude or Amazon Bedrock, depending on the sensitivity of a given client’s data.

A crucial part of that architecture is citation. With MongoDB Vector Search on Atlas, Squary AI can attach a citation to every claim in a generated report, helping to avoid hallucinations and letting legal professionals verify information sourced from documents that can run to tens of thousands of pages. For a platform where accuracy is the top priority, that trust layer is foundational to the product.

Squary AI logo
“The migration was surprisingly fast; we adapted our code in a matter of days.”
Justin Waltrip
Co-founder, Squary AI

OUTCOME

Achieving Faster, Cheaper, and More Reliable Results at 10x the Scale

Consolidating on MongoDB Atlas produced measurable gains across cost, performance, and stability. “With MongoDB, we now handle 10 times our previous data volume for less money,” said Waltrip, a direct reversal of the price-to-performance challenges that the previous setup created.

Search latency improved just as dramatically. Where OpenSearch query times had stretched up to 15 seconds, MongoDB now returns search and generation results consistently under 10 seconds.

Stability improved as well. Squary AI has experienced zero outages since the migration, with the platform proactively scaling rather than failing under load. The team now receives timely notifications when scaling is needed and maintains only one connection to its database, simplifying the code base. Debugging is easier too: Team members can access and inspect raw data directly through MongoDB Compass, a web dashboard that eliminates the complex workflow that the old setup required.

Squary AI logo
“With MongoDB, we now handle 10 times our previous data volume for less money.”
Justin Waltrip
Co-founder, Squary AI

These gains translate directly into customer value. Squary AI’s speed and reliability reduce document review time by up to 70%. At Quatrini Law Group, a disability, workers’ compensation, and personal injury firm, Squary AI analyzed more than 460,000 pages and saved over 400 attorney and paralegal hours, with every output source-linked to page-level citations. Twenty-eight attorneys and legal staff adopted Squary AI with same-day time-to-value and no disruption to how they already work.

By unifying its database and search on MongoDB Atlas, Squary AI turned a fragmented, unstable architecture into a high-performance foundation for AI-powered legal workflows, one built to scale without the operational burden that once held it back.

Run MongoDB without the operational burden

Atlas is the simplest way to deploy MongoDB. Get global resilience, push-button scalability, and advanced security.
Learn More
Illustration of a database stack

Explore more success stories

View all stories
Novo Nordisk logo
With Video

Novo Nordisk

This Danish pharmaceutical giant became the first in the industry to generate a complete clinical study report (CSR) in minutes with generative AI and MongoDB Atlas.

Read more
Toyota Connected logo
With Video

Toyota Connected

See how Toyota Connected migrated to Atlas and AWS to enhance reliability for its safety platform.

Read more
L'oreal Groupe logo
With Video

L'oreal Groupe

Discover how L’Oréal improves app performance and velocity with MongoDB Atlas.

Read more

Take the next step

Get access to all the tools and resources you need to start building something great when you register today.
Get StartedTalk to an expert
Illustration of a database.