GartnerMongoDB named a Leader in the 2026 Gartner® Magic Quadrant™ for Cloud Databases. Read the Gartner report > >>

Gravity makes ads in AI more relevant with Voyage AI

Photo of company employees.

Their Challenge

While scaling its emerging AI advertising network, Gravity needed to surface relevant ads and filter out poor matches within AI responses.

Our Solution

Gravity used Voyage AI embedding and reranking models to improve retrieval quality while optimizing its pipeline for latency and scale.

Outcome

With these optimizations, Gravity achieved 50% lower retrieval latency, improved accuracy, and effectiveness (results per thousand ads shown) went up by over 16x.

enterprise_new

Industry

Computer Software & Technology

Startups
agent_new

Product

Voyage AI

 

ai_2 _new

Use Case

Gen AI

Gravity Is Rethinking Ads for AI with Voyage AI

THEIR CHALLENGE

Finding the right match for every AI interaction

Gravity is building an advertising network to help make frontier AI accessible to everyone. It gives AI platforms a way to earn revenue while offering users free or significantly discounted access. Rather than serving traditional banner ads, Gravity generates ads within AI responses that are relevant to the user’s conversation. Sponsored content does not influence the AI’s underlying answer. For example, if someone asks an LLM which database to use for an unstructured-data application, the AI determines its own technical recommendation, while Gravity can identify a relevant sponsored suggestion from an advertiser based on the query.

Identifying relevant sponsored suggestions—and filtering out poor matches—is critical to Gravity’s mission. The company needs to identify which advertisers are relevant to a user’s request from a large campaign pool. Previous embedding and reranking models produced closely clustered relevance scores, making it difficult for Gravity to confidently distinguish which candidates were actually the best fit. Because downstream steps can’t recover the best match when poor candidates are surfaced early, Gravity needed a model with sharper judgment at this stage.

OUR SOLUTION

Using Voyage AI to surface the right candidates and reduce latency

After testing multiple options, Gravity found that Voyage AI by MongoDB could differentiate stronger matches from weaker ones. The embedding models in Voyage AI broadly identify campaigns that could be relevant to a user’s query, while its reranking model further refines the results to select the best candidates. That distinction helps Gravity avoid irrelevant ads that could detract from the user experience while increasing the likelihood of results for advertisers.

“Our goal is to make frontier AI accessible to everyone,” said Leo Martinez, Cofounder and Chief Technology Officer of Gravity. “Ads can help fund that access, but they must be relevant and must never change the AI’s underlying answer. Voyage AI helps us distinguish strong matches from weak ones, which is an important part of delivering that experience.”

Gravity also worked with the Voyage AI team to benchmark different models and move to a lighter embedding model that maintained similar accuracy while reducing latency and increasing throughput.

Gravity logo
“Our goal is to make frontier AI accessible to everyone. Ads can help fund that access, but they must be relevant and must never change the AI’s underlying answer. Voyage AI helps us distinguish strong matches from weak ones, which is an important part of delivering that experience.”
Leo Martinez
Cofounder and Chief Technology Officer, Gravity

OUTCOME

Improving retrieval speed and accuracy at scale

With these optimizations, Voyage AI models reduced retrieval latency by 50% and improved accuracy. Gravity also saw effectiveness increase more than 16 times, measured by the number of results per thousand ads shown.

The improved retrieval has translated into business results for Gravity and the advertisers on its network. By matching ads more closely to user intent, Gravity helps AI developers monetize their applications and move closer to making AI free. “One of the platforms we work with just raised their Series A off the back of ad revenue from us,” said Martinez. “It's definitely starting to grow.”

Gravity logo
“One of the platforms we work with just raised their Series A off the back of ad revenue from us. It's definitely starting to grow.”
Leo Martinez
Cofounder and Chief Technology Officer, Gravity

Explore more success stories

View all stories
Mercor logo
With Video

Mercor

Learn how AI-native talent network Mercor scaled to a $10B valuation in three years using MongoDB Atlas, Vector Search, and Voyage AI embeddings.

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
An illustration with three overlapping arrows.