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. 

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

CTV Buyers Are Getting The Show-Level Performance Optimization They’ve Always Wanted

A collaboration between InterMedia Advertising, Peer39 and Pontiac Intelligence provided show-level cost-per-acquisition data for 94% of CTV ad impressions.

Advertisers Await Programmatic Pause Ads

The IAB Tech Lab is working on standardizing programmatic signals for new streaming TV ad formats, including pause ads. Meanwhile, many brands are eager to add pause ads to their repertoire.

Why Media Mergers And Spin-Offs Don’t Always Keep Their Promises

With media megamergers, acquisitions and spin-offs left and right, the media landscape is changing at a pace that is difficult to keep up with.

Privacy! Commerce! Connected TV! Read all about it. Subscribe to AdExchanger Newsletters
TransUnion is partnering with Blockgraph so that advertisers can use its identity data to target, reach and measure TV households across channels.

How This Disaster Relief Nonprofit Tapped First-Party Data To Reach Donors Year-Round

Staying top of mind for potential donors is an ongoing challenge for Direct Relief. Nexxen’s audience curation helped it spread and sustain awareness.

Why Major UK Publishers Are Finally Joining Forces To Curate Ad Inventory

Atria’s collective approach is a response to growing monetization challenges and the need to protect the value of human journalism in the AI era.

Toronto Canada pride parade includes a crowd waving pride flags

Ad Performance And Politics Steered Brand Dollars Away From LGBTQ+ Communities – But The Pendulum Will Swing Back

The current administration has discouraged many marketers and organizations from showing support for the LGBTQ+ community, including during Pride month.