
AI context sources
What you will learn in this module
Context comes from many sources
What’s different between unstructured and structured sources
Key challenges of context management in a multi-source data ecosystem
Where does context come from?
Finance, sales, product, and operations each carry their own definitions, assumptions, rules, and conventions. Much of it resides in people’s heads, in working documents, and across siloed systems that were never encoded in software or connected to the data workflows that depend on them. That accumulated knowledge is context. Without it, an AI system cannot consistently produce accurate answers, because the same question can be interpreted in multiple ways.
For years, humans have bridged that context gap manually. An analyst knew which table to trust and quietly corrected the query before anyone saw the answer. To scale AI analytics beyond a handful of power users, you can no longer rely on that hidden correction. You have to treat context as critical infrastructure: something you build, test, verify, and maintain with purpose.
The analytics stack
Before we can see where AI gets its context, let’s look at where a company’s data already lives. Analytics teams assemble data through several layers of data infrastructure, commonly referred to as the “Modern Data Stack.”

At the base are data sources: databases, warehouses, SaaS apps, ERPs, and other transactional systems. Pipelines move that data into a central warehouse or lake using ETL or ELT. A modeling and preparation layer shapes the data into a consumable format. A governance layer, often a data catalog but more frequently now included in modern warehouse tools, tracks lineage and organizes what exists. A semantic layer defines metrics so the tools above can read them consistently. At the top sit the BI tools and analytics consumption tools that the business uses to interact with the data.
Every organization mixes these pieces differently, which is the first hint at why building and managing context is hard: traditionally, there has been no single, standard place it lives.
Adding AI to the analytics stack
AI enters this stack mainly through a consumption layer where it turns a plain-language question into a database query using methods like text-to-SQL.
At the bare minimum, the model needs metadata about the stack itself, such as: which sources exist, what APIs are available, and how to call them. But that’s just the tip of the iceberg.
An AI system needs something different from each kind of source:
Databases (SQL, NoSQL, warehouses): Which tables and columns are authoritative, how they join, and which are stale or deprecated.
APIs: Which endpoints exist, what they return, and how to call them.
Flat files (CSV, Excel, XML/JSON): What each column means, since a spreadsheet carries no schema of its own.
Streaming data (IoT, real-time feeds): How fresh a value is and how to read a number that keeps moving.
Cloud services (AWS, GCP, Azure): Where data physically sits and how access is scoped.
Manual input (user-entered data): How reliable is it, since hand-keyed data carries a higher error rate?
Other sources (RSS, web scraping): Whether the source is trusted and how current it is.
All of this — the definitions, trust signals, join rules, freshness, and access scope — is part of your AI context.
How to get data sources AI ready
To deliver AI analytics, 60% of data leaders look to cleaner data — ensuring all the source tables are connected, no conflicts exist, and the semantics are fully defined. It’s a logical instinct. But with all the complexity described above, most teams are finding that hitting a clean data MVP is more of a fallacy than a reality.
For the sake of the argument, assume you’ve got perfectly clean data with relevant data structure, semantics, catalogs, and metadata in place. AI will still misinterpret your data based on governance context alone. And as business and data context shifts, new conflicts will be introduced.
That’s why the solution is not cleaner data. It’s context management. By curating the context you already have into a centralized layer, managing that context as a lifecycle, and ensuring the right architecture is in place to apply that context at query time, teams can deliver reliable AI analytics without spending years and countless engineering hours on a clean data MVP.
Enterprise context sources
So where does that context live? Some of it is already written down. Data sources hold it, both the structured tables in your warehouse and the unstructured text in emails, Slack threads, and PDFs. Semantic layers hold metric definitions. Schemas describe data structure. Data catalogs record lineage and ownership.
Modern AI systems can federate across these, querying data in place instead of moving all of it first and reaching unstructured sources that older tools left untouched. However, without a centralized context layer in place, conflicts will still be introduced — more on this in the next lesson.
But the most valuable context is the hardest to find, because it is not written down at all. It lives in people’s heads. In fact, a recent survey found that over half of leaders still rely heavily on this institutional knowledge.
An analyst on an end-of-week deadline knows the aggregate table reports cleaner numbers than the transactional one. Someone remembers that last quarter’s revenue jump came from a one-time data migration and not from real growth. A sales leader approved a 15% discount to close the quarter, and the reason sits in nobody’s database.

Data analysts are well placed to surface this knowledge. They already sit across these systems, and they carry much of the missing domain expertise in their heads. That makes them the natural curator of context for AI, not only a consumer of its output.
Selecting the right context storage solution
These sources share one common property: they constantly change. Finance adjusts how it calculates ARR. A territory redesign splits one region into two. A metric definition drifts. If context is this frenetic, it cannot be a document you write once and forget.
The more useful way to think about it, is to treat context like code. Engineers version, deploy, track changes, and monitor code for reliability. Context needs the same discipline. That points to a glaring gap in the current “modern data stack.” This architecture does not include a dedicated context management system: a place to build, govern, and update context so every answer draws from the current version instead of a stale note on someone’s desk.
The modern context layer must serve as a centralized hub to build, govern, version, and update context. Doing so will ensure that every AI prompt and analytics query draws from the single, current, and approved version of truth — not undocumented knowledge in an analyst’s head.
Key takeaway
Context changes as the business changes, so manage it like code: version it, govern it, and keep it current.
How does AI process the information it is given?
Once you have gathered context, the model works with it inside a fixed space called the context window. A context window refers to the information an AI model can hold in view during a single interaction.
Two limits matter here:
You must know that the attention across any given window is uneven. So, pouring in more context does not reliably help. In fact, it can bury the point that matters most.
More importantly, the model does not resolve conflicts on its own. Give it five versions of a metric, or two definitions of revenue, and it cannot reason which is right. Instead, an AI model will consume the contradiction and make an educated guess, often without flagging the assumption.
This is why context has become one of the most misunderstood words in AI. Teams treat it as a volume problem, when in reality, it is a quality problem. The real work is deciding which sources to trust, how you settle conflicts, and what business logic governs the final answer — not feeding the model more.

Those are human judgments, and no larger context window makes them for you.
Go Deeper
Read Context is becoming AI’s most misunderstood word (CIO.com) for more on why adding context, without deciding what to trust, tends to make answers worse.
Key takeaways
AI context is sourced from many places at once, from databases and APIs to files, streams, and the knowledge in people’s heads.
Context drifts, so it has to be managed like code: sourced, versioned, governed, and kept current.
A bigger context window does not settle conflicting sources. Choosing what to trust is the central challenge of AI analytics.
