Context, Our Window into how Generative AI “Converses”
Context, Our Window into how Generative AI “Converses”

Adam Sandler started in the 2004 movie “50 First Dates,” a fictitious romantic comedy that depicts a romantic interaction between Henry (Sandler) Lucy (Barrymore). The catch, Lucy suffers from amnesia due to a car accident and her memory is reset each evening back to the state prior to the crash. Sandler, after learning this truth, devises a plan to place a video in her room to play every morning with Barrymore’s friends explaining her situation. The story progresses with Sandler enjoying fifty “first dates” with Barrymore’s character.
The movie reminds me of the modern world we live in with Generative AI — the general populus are playing the part of Sadler and Generative AI engines as Barrymore. Let me draw the parallel for you in the hopes that, you, the reader, are enlightened about the “condition” of Generative AI similar to Sandler’s character. My intentions are simple, help my readers understand how Generative AI works to better understand how to apply the technology to scenarios they face on a daily basis, cut through the hype, and focus on implementing AI solutions that fit the problem, not try to engineer a problem to use AI as a solution.
Context is Critical
It would help to first start off with a definition, context window. The context window is the number of tokens (think words) that an AI model can understand at a given period of time. Typically within this context window includes the system prompt — instructions that the issuing institution provides behind-the-scenes to the AI engine — and the user-defined prompt — what you, the user, input into the system. What happens when you hit “send” with any of these models is that the prompt gets sent to a server and the Generative AI model performs the computation. What is that computation you ask? Simply put, its probability and statistics! The LLM is a predictive engine that, similar to how line complete predicts the next few words in an email or text message, but on a massive scale to the likes of a blog post, essay, or research paper. I detailed these computations in “The Transition from Conversational AI to Generative AI”
Effectively speaking, the prompt helps draw a line in billionth dimensional space and then generates text based on that, hence why the ability to ask AI to write a sea shanty about puppies or explain eigenvalues in baseball terms are effective prompts. Furthermore, Generative AI’s context window allows for “few shot” prompting or the ability to provide grounded examples within the context window to recreate as the model is more attuned in billionth space to what is expected, same goes for Retrieval Augmented Generation which is looking to summarize information already available and provided.
A comparison of Generative AI and Conversational AI technologies while explaining the shift from one era to another.medium.com
Any additional prompting tactics such as few-shot learning or function/task/skill defining for agentic frameworks all fit within that context window. This context window is critical and is why foundation model providers are focusing on increasing the context window with every new release of the Large Language Model.
The Convrsational “Short Term Memory Loss”
Similar to Lucy, a Generative AI model’s “memory” (or complete lack thereof” gets reset. What does that mean? I go into ChatGPT and ask it a question. That information is sent to a random server, computed by ChatGPT that lives on that server, and the model predicts a response which I read, interpret, and determine what actions I take with that information. Should I decide to ask a follow up, does the model remember what I just asked?
NO!!
What happens underneath is that my initial question + the first response + my next question all get sent to another random server with another version of ChatGPT running on that server, and I get a predicted response with all history as context. Fascinating right? These models do not have memory and thus, require tactics in which to remember and service information. So how does this memory happen?
In my piece “Let me Take Note of That — How AI Remembers” I detail one methodology similar to taking notes in a notebook:
The latest research suggests that AI models, just like humans, should “take notes” and store them in a notebook. What do I mean? Take an example where a person provides feedback to an AI model, asking for any response to be in very simple terms. The AI model, again, that applies to everyone, can simply create a note in the “Person A” log that states that they want simplistic language whenever interacting with them. In the future, when Person A goes to interact with the LLM again, the LLM will then “check its notes” and “remember” that Person A wants simplistic language. This is done through loading the feedback (or subsets of the feedback) into the context window that then effects the overall model, similar to other prompting techniques. In effect, the AI is taking notes on any feedback and separating it by person. This can be generalized to every type of scenario, effectively performing individualized Reinforcement Learning through Human Feedback (RLHF) without effecting the global model.
Long Term Memory for AI is simply in the form of taking “notes” and recalling them using basic databases. Dive in and…medium.com
Reasoning and Stream of Consciousness
Reasoning and Research, two budding areas in Generative AI that are riding the hype cycle currently. What happens with these models follows a similar pattern: the model generates tokens (text) that fit within the context window and as that window gets maximized, it continues a rolling window as it continues generating text, slowly pruning off earlier parts of the prompt and generated text. Part of this is done in a pseudo stream of consciousness modality with reasoning tokens:
Do you see where this logic is progressing towards? As you know, OpenAI debuted GPT-4o (code named “strawberry”) which introduced a novel concept of a “reasoning” model. These models inherently output “reasoning” tokens aimed at displaying its thought process and logical thinking that arrived at a conclusion. This was further showcased by Claud 3.5 when playing Pokemon, showing the step-by-step thought processes of the model through <thinking> tags within the token output. I continue to urge that these models are not nor should be personified, but, as I mention earlier, mimic how humans behave as they inherently were created by humans.
The prompting technique “Show Your Work” evolved into thinking models and deep reasoning models. How did we arrive here…medium.com
What should I be thinking about?
At the beginning of the piece, I noted that the purpose of this post, like all of my posts, is to give readers an understanding of the technology at play. By understanding how LLMs “converse” and “think” and “reason” we can unveil their limitations, shed skepticism (with amazement, don’t misinterpret my tone), and apply knowledgably AI systems that work, fit the use case, and drive impact in society!
Artificial Intelligence is a fascinating field but we might always ground ourselves in the understanding that its probability and statistics. When we hear leaders in technology make claims about AI, always question it and focus on understanding the true essence of the technology so we, as a general populus, do not continue to go on 50 first dates with AI.

Sam is passionate about empowering people to innovate, understand, and transform the world utilizing ground-breaking Conversational Artificial Intelligence technology. He seamlessly melds business acumen, technological know-how, and creative vision to identify, prioritize, and resolve his client’s most daunting problems to ensure their competitive edge in the marketplace.
Follow me on LinkedIn