
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.

