Home Data-Driven Thinking RAG Against The Machine: Injecting First-Party Data Into AI Models For Better Results

RAG Against The Machine: Injecting First-Party Data Into AI Models For Better Results

SHARE:
Hugo Loriot, Head of Data & Technology Integration at The Brandtech Group

First-party data has long been in a marketer’s toolkit as a critical instrument to personalize the customer experience across media touch points. But it has yet to influence how most companies use generative AI technology. 

However, proprietary data sets have the potential to play an important role in several key marketing applications for generative AI today. That includes content production at scale, campaign insights generation and customer service. 

The technology and process already exist to take advantage of large collections of structured and unstructured data in the form of retrieval augmented generation pipelines (RAG). RAG is a recently developed process to ingest, chunk, embed, store, retrieve and feed first-party data into foundation models such as the ones provided by OpenAI, Google and Meta.

Here’s how to use these tools to inject first-party data into your next AI-enabled campaign.

It’s all about context

Whether you use GPT, Dall-E, Imagen, Gemini or Llama, each time you ask a generative AI application to produce text or imagery, you provide (primarily text-based) instructions. These instructions are sent to the model to generate the desired response (what is called an inference). The result is either an insight, an ad copy or a creative.

Every marketer and agency can benefit from Google and OpenAI’s petabytes of training data to do their job more effectively. There is a trick, though. Foundation models are not retrained often (maybe every other year). That means they are not always up to date. And while these models may appear omniscient, they are actually clueless about information that is specific to your brand and your customers. 

Why? Because this information is not publicly available. 

If you ask Dall-E or Imagen to adapt a master creative to each of your five key audience groups, they will certainly fall short and potentially hallucinate, because they have no idea who your audience is and what they might be interested in. 

The ability to contextualize a prompt with first-party data and knowledge is critical, not only to differentiate yourself from the crowd but also to help generative AI models provide useful results. If you add to your prompt audience-specific data (such as demographics and preferences), then you will get on-brand, customized creative at a fraction of the cost. 

Similarly, asking Gemini or GPT to write an Amazon product description between 500 and 800 characters for a new product will not give great results, unless you add examples of existing high-performing copy for other products in your catalog. This process is known as few-shot prompting. 

Subscribe

AdExchanger Daily

Get our editors’ roundup delivered to your inbox every weekday.

RAG time

The ability to identify and extract proprietary knowledge and data are key to generating successful content. But what needs to be done to feed first-party data into a large language model (LLM)?

For generative AI, data management involves different technologies and pipelines than those that are used with other mar tech applications, such as customer data platforms. That’s because of the broader nature of first-party data and how it is consumed by LLMs. 

In traditional mar tech, when you want to address your “health-conscious moms” customer segment, you select all the rows in your database that return both “moms” and “health conscious” attributes. You export the resulting list of hashed emails to the target media platform. 

But in the age of generative AI, marketers need a RAG pipeline to ingest, chunk and embed rich information about the “health-conscious moms” segment. This data includes social listening, qualitative panels and customer reviews, as well as creative features that have historically performed well against that group. 

Chunking and embedding may not be familiar terms to advertisers. These concepts represent breaking down long, unstructured text files and multilayered images into smaller homogeneous pieces (chunking) and translating these pieces into a mathematical multidimensional representation (embedding). These processes make it possible to inter-operate the data with an LLM. 

When using a generative AI application, the prompt that is sent to the foundation model to create a creative variant that is optimized for health-conscious moms will be enriched by the RAG pipeline. The most relevant pieces of knowledge extracted from the brand’s first-party data universe, and the resulting creative, will be tailored to this audience group with data points specific to the brand.

This new paradigm presents an opportunity for brands that were traditionally considered data-poor because they didn’t have the necessary value exchange with users to collect large amounts of structured consumer-level data. 

Smarter use of first-party data

By implementing strong data management processes and RAG pipelines, companies in verticals such as CPG and automotive can sift through the huge amount of unstructured audience insights and creative performance reports they have accumulated over time. These insights can be used to create a new type of competitive advantage based on first-party data. 

No matter how powerful new AI models become, they will always be better when provided with relevant data. The sooner marketers realize the opportunity, the better.

Data-Driven Thinking” is written by members of the media community and contains fresh ideas on the digital revolution in media.

Follow The Brandtech Group and AdExchanger on LinkedIn.

For more articles featuring Hugo Loriot, click here.

Must Read

Why Vodafone Is Giving Out Grades For Its Creative

One way to get a handle on your brand creative is to, well, grade your homework, according to Anne Stilling, Vodafone’s global director of brands and media.

Inside The Fall Of Oracle’s Advertising Business

By now, the industry is well aware that Oracle, once the most prominent advertising data seller in market, will shut down its advertising division. What’s behind the ignominious end of Oracle Advertising?

Forget about asking for permission to collect cookies. Google will have to ask for permission to not collect them.

Criteo: The Privacy Sandbox Is NOT Ready Yet, But Could Be If Google Makes Certain Changes Soon

If Google were to shut off third-party cookies today and implement the current version of the Privacy Sandbox, publishers would see their ad revenue on Chrome tank by around 60% on average.

Privacy! Commerce! Connected TV! Read all about it. Subscribe to AdExchanger Newsletters

Platforms Are Autogenerating Creative – And It’s Going To Be Terrible

This week, we’re diving into the most important thing in advertising – the actual creative – and how major ad platforms are well on their way to an era of creative innovation. Actually, strike that. I meant creative desolation.

Comic: TFW Disney+ Goes AVOD

Disney Expands Its Audience Graph And Clean Room Tech Beyond The US

Disney expands its audience graph and clean room tech to Latin America, marking the first time it will be available outside the US. The announcement precedes this week’s launch of Disney+ with ads in Latin America.

Advertible Makes Its Case To SSPs For Running Native Channel Extensions

Companies like TripleLift that created the programmatic native category are now in their awkward tween years. Cue Advertible, a “native-as-a-service” programmatic vendor, as put by co-founder and CEO Tom Anderson.