The Anatomy of a GenAI System - Part 1

Eric Famanas

~6 min read

The anatomy of an AI system as understood by ChatGPT 4o

Data Ingestion and the ETL Pipeline

First, I would like to emphasise an important point which Gary Brotman , Jeremy Sosabowski, PhD , Tim Pullan and Nicolas Durrande had spoken about during the last AI meetup I went to, which was arranged by Aimee Vincent-Bunn (thank you very much for doing this).

"The use of the word Artificial in Artificial Intelligence is a misnomer and implies the idea that AI is sentient in some respects, capable of replacing a human completely. This is not the case, and in reality is more akin to Augmenting Intelligence or Automation Intelligence".

This is an important distinction to make up front, as there is a misconception that AI, particularly Generative AI (or GenAI for short) is a single-source solution, or a silver bullet, for all things technology related; there are even schools of thought around the idea that AI can even replace software engineers at scale, causing massive disruptions throughout the industry (this is a big topic, but I will save it for another article when I start discussing AI tooling solutions).

As we discuss AI, please keep in mind that while people are trying to understand the potential use cases for this technology, its applicability to those use cases are ultimately driven by the capabilities of the system. Regardless of opinions about the usefulness of AI, the fact of the matter is that, in order to unlock its full potential within a given domain, just like any tool that we use, we need to have a thorough understanding of it, beginning with how data makes its way into an AI system to begin with.

The Data Ingestion

In my previous posts about the how important data is in a global economy and data in respect to digital sovereignty, it cannot be stated enough how important data is to AI systems, or really any type of system that relies on a continuous improvement paradigm. Yes, data is important, but so is understanding the process in which the data gets collected, or ingested, into the system it will eventually support.



NSA, Ft. Meade, as illustrated in the Simpsons Movie

NSA intelligence collection centre, as depicted in the Simpsons movie

In discussions around machine learning and artificial intelligence, there is often talk about the "ETL" pipeline, or the Extract, Transform and Loading process which ingests data and prepares it for the system. While this image of NSA from the Simpsons movie may not seem relevant, it is actually an appropriate metaphor for the ETL process; additionally, this analogy can also be used to also dispel certain ideas around the data ingestion process as well.

Despite how important the data ingestion process is, for the sake of a blog post, the details I will discuss will be very light, and I would highly recommend further reading publications such as Designing Data-Intensive Applications and System Design Interview to further explore the architecture of ETL pipelines and the systems they are supporting.

Being picky about which data to extract

All data is valuable, this much is clear. So why not consume and process any and all data available, as the Simpsons implied when they depicted the scene of NSA, with thousands upon thousands of operators covertly listening into telephone conversations? While the illustration is a parody on what actually happens, keeping this image in mind helps us to critically think about how absurd the idea is of actually collecting data on everything.

Much like we describe people as "resources", hardware resources such as computer processors and RAM can be viewed in the same light of both capability and limitations. Just like a developer needs to consider the capabilities of one or more machines ingesting data, an operations manager in this type of NSA-style data collection effort needs to consider the most appropriate use of resource. Collecting data on everything means supplying storage, considering processing speed, network latency, databasing solutions such as Vector vs Graph databases, etc. Even with today's advanced technology, performing such a feat within a reasonable timeframe alone is impossible; it's hard to imagine that the individuals depicted in this concept of NSA are also be tasked to spy on everything given similar, human limitations.

Instead, to optimise resources, we always collect and extract data given the context of the solution we are trying to solve. From my experience, projects I have worked on were always concerned around radio frequency signals data, electronics emissions data or risk propensity indicators within human behaviour; my search capabilities are more targeted and refined to specific directions, allowing me to extract high-quality data for processing. AI projects are no different: to maximise the already-expensive compute available, system designers and project managers need to precisely define the types and quantities of data to go after. After all "garbage in, garbage out"

Preparing the ingredients for your AI stew

As a former colleague and friend of mine Nikos Karagiannakis, PhD once told me: preparing data for a system is like preparing ingredients for a stew: you don't just throw everything into the pot raw; there will be certain processing steps to prepare the meat and the vegetables to make sure they are ready to cook for a particular dish. In this case, data is no different.





"Johnny Five" from the film "Short Circuit"

"Johnny Five" from the film "Short Circuit"

For those who are not familiar with the movie "Short Circuit" (the first one), anon war machine number five, an AI inside of a robotic skeleton, becomes self aware and craves data for processing. After being taken in by his human caretakers, he is named Johnny Five. To work toward his goal of self-discovery, Johnny Five needs input, or data. Like this Simpsons, this is a very comical take on a modern day topic, specifically artificial intelligence.

"A true General AI system is where artificial intelligence can achieve data ingestion and organisation in a way that a human can."

During his quest, Johnny Five goes out and consumes data for input, as it famously exclaims. This is where the second myth of AI and data ingestion needs to be dispelled; just like in the data extraction phase, where the limitations of data intake were constrained by resource and capability, the same rules also apply here. In the film, we see our tenacious robot extracting and consuming data in all formats, such as books, television, conversations, and even observations of its environment. The robot is then able to process and store the data using types of nemonic devices or association (we see this by the way it comically repeats television commercials). This is actually no different than the way our own brains work in terms of data storage, which is why learning and memorisation techniques around this strategy are so effective.

What we see in the film is the ideal form of a true "General AI" (not Generative AI) system, where artificial intelligence can achieve data ingestion and organisation in a way that a human can. As it stands, current AI systems, at the time of this writing, are very very far away from a General AI capability. Within the ETL pipeline, the transform step still requires the extracted data to be organised in some quantitative or taxonomy-centric structure that will allow a system to rapidly traverse the warehouse and produce a response within a highly performant timeframe. This is the key point. While we can have a very minimal transform process and allow the data to be unsorted, this only means that the organisation logic will now need to sit within the Load step (ELT vs ETL), so the problems we face today will always exist until we can replicate a more efficient data structure like the ones we use in our brains.

Up Next....

The Load step of the ETL is also a very large topic, but because it also relies on the architecture of the client AI system that sits on top of it, I decided to save it for the next section, as it naturally goes hand in hand with the different types of GenAI architecture that will be discussed. Thank you for reading!



Systems Orchestrator

CTO · Technology leadership