← All Weekly Query issues
NOV 24, 2026 The Weekly Query

The Weekly Query: Where do you find the context your AI analyst needs, and how do you make sure it uses it?

Part 2 of our context tutorial, 10 growth analytics jobs, a 30-second growth lesson, and the return of Data Neighbor.

Shane Butler
Shane Butler Co-founder, AI Analyst Lab

Hey folks!

Welcome to another edition of The Weekly Query.

Today, we're picking up our tutorial on context engineering and management for AI analytics from a couple weeks back. In Part 1, we built company context, domain guides, and semantic models for our AI analyst. We also talked about who owns that knowledge and how to review changes before the rest of the company starts using them.

We did a lot of that by interviewing ourselves and writing things down. But your company has been around longer than your AI analyst. People have already documented metrics, built models, run experiments, and made a whole bunch of decisions about how the business works. Some of that is in a wiki. Some is in GitHub. Some is buried in an analysis someone did two years ago.

We don't need to reinvent the context wheel.

In this issue, we'll work through how to find that information, turn it into context other people can reuse, and check whether the agent actually uses it when it should.

Alright, let's get into it.

This week's query

Where do you find the context your AI analyst needs, and how do you make sure it uses it?

By Shane Butler

Context Sources and Retrieval | Part 2 of 3

We'll continue with Porchlight, our fictional neighborhood social network, using Hex as our analytics workspace. You're welcome to follow along with your own data or the demo data available in Hex. The decisions we're making here apply if you're building your own system too.

Quick reminder of the problem: Porchlight's weekly active users are declining. In the first tutorial, we learned that its company definition includes both people using the product and people who only open qualifying emails. Those components can move in different directions, which makes the top-level WAU number a little tricky to interpret.

We built the context to calculate those metrics and investigate changes in user activity. Now we want to understand what might have caused the decline.

And I'd bet someone at this company has already done work that could help us.

Start with a question you actually need to answer

There are a lot of places we could look for context.

At Porchlight, email activity makes up part of WAU. So before inventing an explanation for its decline, I'd want to understand how notifications work, what changed recently, and whether anyone has already investigated their effect on engagement.

That gives us a much more useful place to start than asking AI to read the entire company wiki.

For this investigation, we'll look at three kinds of existing knowledge:

  • Business documents: the Notifications team's definitions, plans, and decisions.
  • Previous analyses: an experiment testing a change to neighborhood-digest emails.
  • Maintained data definitions: the measures and models the company already uses to calculate activity.

Those sources can contribute to different kinds of context. A team page might help us write a domain guide. An old notebook might give us a reviewed analysis to build on. A maintained semantic model might already contain the calculation we need.

One source can help with more than one of those things. We might use the same Notifications page to improve a guide, describe a column, and identify a metric that belongs in a semantic model.

Three paths: team documentation to domain guides, previous analyses to reviewed references, and maintained definitions to semantic models.
Existing company knowledge can become context people and agents reuse.

Have the agent look through the team's documentation

In our Enterprise Context workshop the other week, I connected Hex to Porchlight's Notion workspace. Notion is where our fictional Notifications team documents its work. If your company uses another wiki or Google Drive, the same idea applies through whatever connection your tools support.

Once connected, I wanted the agent to help me figure out what exists and what we could use. Here's a prompt I used for Porchlight, but you can adapt it to your own use case:

Search the Porchlight documentation for information relevant to notifications, digest emails, and user engagement. For each useful source, give me its link, owner, date if available, the questions it helps answer, and any caveats or unresolved decisions. Recommend whether it should inform workspace context, a domain guide, a semantic model, table descriptions, or a reference analysis. Don't create or publish anything yet.

I want those source links so I can actually go read what it found. I also want it to separate established definitions from plans, proposals, and questions that haven't been settled.

In our example, the agent found the Notifications team's metrics page and a document about a neighborhood-digest rollout. It recommended building a Notifications guide, identified definitions that needed confirmation, and pointed us toward the person responsible for them.

Hex proposes a Notifications guide, gives reasons for the guide, and lists questions to confirm with Peter.
The agent proposes a Notifications guide and lists the definitions Peter still needs to confirm. From our November 14 workshop.

This is where we start branching out beyond writing down what we personally know.

With this Notion page, I can take a first pass at drafting a domain guide from that documentation, then take it to the Notifications owner and ask: did we get this right? Are these definitions still current? What are we missing?

Note: you can have AI draft the guide, but you still need an owner of that area to tell you what you got right or wrong. Like I don't know that much about notifications, so I'm going to have to go talk to the PM on that team who does.

Turn the useful parts into shared guidance

Say we decide the Notifications metrics page is a good starting point. We can have the agent draft a guide using the structure from Part 1 of our Context tutorial:

Draft a Notifications domain guide from the sources we just reviewed. Use our existing guides as a template. Include the questions it supports, approved definitions, sources and joins, filters, exceptions, and interpretation rules. Keep source references and identify what the owner still needs to confirm. Don't turn a proposal or an assumption into an approved rule. Show me the draft before publishing.

Then I'd review it with the owner (the notifications PM in my case), resolve any open questions, and test a few things people would actually ask. For this guide, that might be:

  • What's our digest click-through rate?
  • What was the digest open rate last week?
  • What counts as an email unsubscribe?

For each one, I'd inspect what it counted, what it divided by, which filters it applied, which sources it used. A click-through rate can mean different things depending on whether we're counting clicks, unique clickers, delivered emails, or recipients. So I want to ensure that aligns to the company's definition.

Once we've reviewed and tested it, we can publish it as shared guidance, just as we’ve done with domain guides we created from scratch.

Now where this gets a bit different is who maintains this going forward. We aren’t experts in this area when we are pulling in existing context someone else originally authored. So we need to agree on what the process is in the case where a future change happens. If the Notifications team changes its definition in Notion, who updates the guide? If the guide is now the approved home for that definition, does the original page point people there?

Otherwise, someone on the Notifications team updates their page, but our guide still has the old definition. Now people are getting different answers again, and we've added to the same problem we were trying to solve.

In this case I’d set up a process where the Notifications PM updates the guide themselves, or proactively tells me or someone else on the data team whenever there is a change so we can make the update. For some context types, Hex actually has an automated context sync feature to help with this.

Previous analyses have a lot more context than the final slide

Now let's go back to that digest rollout.

Porchlight's documentation mentions an experiment increasing the number of neighborhood-digest emails some residents received. And there happens to be an earlier analysis of the experiment.

That existing analysis is really useful context because it tells us what the team was testing, how the groups were assigned, where those assignments are stored, what period they studied, and which metrics they used.

At companies I've worked at, we've kept previous analyses in shared data science repos in GitHub and SageMaker. You might have Jupyter notebooks, SQL files, or published projects in an analytics workspace. Those are good places to look before asking an agent to figure everything out again.

For our Porchlight example, the earlier analysis was actually done in Hex itself. Because this was a published project in Hex, the agent could find it and use it as context. So when I returned to our WAU investigation I could ask:

Find any past analyses relevant to notification or digest engagement. Tell me its question, sources, reporting dates, population, method, and limitations. Which parts could help us investigate the WAU decline?

Neighborhood digest experiment notebook showing hypothesis, neighborhood randomization, and the analysis population.
The earlier digest experiment preserves its hypothesis, assignment unit, and analysis population. Synthetic Porchlight example.

The original readout found an increase in total WAU and recommended rolling out the change.

Original experiment chart compares expanded and standard digest groups; total measured WAU rises after the January 2025 launch.
The original readout shows a higher total measured WAU rate after the January 2025 launch. It combines product and qualifying email activity.

But remember what total WAU includes at this company. Someone opening an email can count even if they never visit the product. So I'd want to ask a few more questions that it seems the last data scientist may have missed before treating that result as evidence of healthier product engagement.

Rerun the analysis separating platform WAU from off-platform WAU. Extend the reporting period where the experiment data supports it, and compare the relevant user-activity and notification measures. Explain any limitations in the comparison.

In our fictional example, separating the components changes the picture a bit. The early increase in total WAU comes largely from email activity. Looking further out reveals a decline in platform activity in the expanded-send group (the treatment group) relative to the control group.

That gives us something concrete to investigate as a possible driver of the broader decline. Before calling it causal, we'd still check the experimental design, assignment, reporting period, and whether the groups remained comparable over that longer window.

Four charts compare platform WAU, email-only WAU, total measured WAU, and frequent-user share from October 2024 to October 2026.
The workshop follow-up separates platform activity, email-only activity, and total WAU across neighborhood groups over time. This exploratory readout still needs the design checks described above.

What's nice here is we already have a lot of the analysis done. The agent doesn't have to figure out which tables hold the experiment assignments, what the groups mean, or which dates to look at. We can read the work, check it, and go a little deeper.

Reuse calculations that someone already maintains

The same idea applies to structured definitions.

If your team already maintains a measure in Snowflake, dbt, or another semantic system, I'd look at using that existing definition before writing a second version in a guide.

There are different ways tools make those definitions available. Some can query the existing system, some import or sync supported assets, and some require you to translate the definition into their format. In Hex, warehouse-managed semantic views are discovered through the data connection, while supported repository-managed resources use Context Sync (as I alluded to earlier).

Say the team updates a definition in its repo. How does that change get to the agent? If we've imported a copy somewhere else, who's going to update it? If the agent reads the original directly, can it access what it needs? I'd want to work that out before we start relying on it.

At Porchlight, our user-activity model already contains the established measures we need for growth accounting. Our guide should explain when to use those measures and their limitations, then direct the agent to the model for the calculations.

Okay great so in Part 1 we authored new context, and today we pulled in existing context we have stored around the company. Now let’s make sure all of this hard work is actually getting used!

Publishing context doesn't mean the agent will find it

Just because context is available to the agent doesn’t mean it will be correctly leveraged by the agent. If you recall in our Porchlight workspace, we created a semantic model for user activity. But in our live workshop when I asked the agent to do some growth accounting and investigate how changes in user activity related to the decline in platform WAU, the agent read our WAU guide, but it didn't use the user-activity semantic model.

We know it should have used that model because we just built the thing. But someone else asking this question doesn't know that. So every time I build context, I want to test it and inspect the work behind the answers it should inform.

In Hex, I do this by opening the Thread Inspector and looking at its Timeline. The timeline shows the sequence of messages and tool calls: which guide it read, which data it inspected, and the calculations it ran. The model I expected to see wasn't there. Hex describes these views in its observability documentation. If you’re building your own system, you’ll want to add tracking and observability into your agent traces. This is what we do in our 5-week course on Agentic Analytics.

Hex Thread Inspector Timeline shows the WAU guide, activity table, SQL cells, and chart creation without the expected semantic model.
The original Timeline shows the WAU guide and table work, with no call to the user-activity semantic model. From our November 14 workshop.

Two useful terms here:

  • Retrieval: finding relevant information and bringing it into the agent's working context.
  • Routing: deciding which source, tool, or method to use for the question.

Think about searching for something online. You see names and descriptions first, choose something that looks relevant, then open it to read more. The descriptions around our guides, tables, models, and analyses help an agent make similar decisions.

If the Notifications guide covers unsubscribes but its description only mentions sends and opens, we should probably improve that description. If several tables appear to contain posts, their descriptions should explain what a row represents and which questions each can answer.

We don't need to copy the entire guide into its description. We need enough information to make its purpose clear.

Fix the point where it went wrong

For our growth-accounting question, the agent did find the WAU guide. That's a useful place to explain how changes in user activity relate to the WAU investigation and direct it to the established model.

A focused addition could say:

When investigating changes in platform WAU, use the relevant growth-accounting measures in Porchlight.user_activity. These describe new users, resurrection, churn, and movements between activity segments. Follow the model's definitions and time windows. Don't assume its daily transitions form an exact reconciliation of a change in rolling seven-day WAU.

That last bit is a helpful caveat. Two measures can help investigate the same problem without being interchangeable or adding up the way someone might expect. You just want to call it out and name them different things.

I'd preview that change and ask the original question again, without naming the model in the prompt. Then I'd inspect whether the agent found it and used its measures correctly.

I could avoid all of this and tell it directly in the prompt, "Hey, use the user-activity model for this analysis," and see whether that helps. But someone else at the company isn't going to know to do that, which is why I want to get this retrieval reliably automated via the existing context.

Five proposed steps: make one guide change, preview, ask the original question, inspect model use, and review before publishing.
Make one focused change, then test the original question without giving the agent the answer. This is the proposed workflow, not a new test result.

Sometimes the problem is different. The guide might not be published. The user might not have access. The agent might read the correct definition and still write the wrong SQL. Or the data might not support the question at all.

Adding more context won't fix every one of those problems. Inspect what happened first so you're changing the thing that actually failed.

Bring the source owners into the process

We've now moved beyond writing down our own knowledge. We're drawing on other teams' documentation, work, and definitions.

Those people need to be part of reviewing and maintaining what we build. The Notifications owner can confirm the meaning of a click-through rate. The experimentation team can tell us which assignment table to use. An analyst who worked on the original test can explain why they chose that reporting window.

AI can do a lot of this work for us. It can find the documentation, draft the guide, and point out things that don't line up. But I'm still going to bring in the people who know that part of the business and ask them to review it with me.

And what's really cool is the next person can use that work too. They don't have to know who ran the experiment or who on the Notifications team to go ask. We've already worked through that with those people and made the context available.

Which brings us to the next part of this series: how do we find the problems that show up when everyone else starts using the system? And how do we tell whether our changes are actually improving it?

We'll get into that in Part 3: Context Improvement & Evals.

New in data this week

  • Hex introduces the Knowledge Engine. Hex's new beta builds a knowledge graph from guides, semantic models, published projects, and what agents learn in conversations. It flags conflicting guidance and lets teams inspect which knowledge agents use. It's rolling out with Hex 4.0; the walkthrough above uses the interface from our November 14 workshop.
Official Hex Knowledge view showing verified, established, and contested knowledge and retrieval activity.
Hex's new Knowledge view shows what agents have learned, including conflicting guidance. Source: Hex.
  • Microsoft brings Power BI definitions into more AI tools. Microsoft announced Fabric IQ connectors for ChatGPT and Claude in preview. They let people ask questions using the measures their analysts already maintain in Power BI semantic models. Fabric IQ in Excel is also in preview, including live PivotTables built from governed models.
  • dbt Charts comes to Claude and ChatGPT. dbt's November update includes a beta for working with dbt Charts boards and warehouse data inside Claude or ChatGPT through MCP, using your own permissions. The boards live in your Git repo, so the work can be shared and reviewed alongside the rest of your analytics code.
  • Databricks connects customer value to advertising. Databricks announced CustomerLake Conversions to send business-defined conversion signals, such as purchases from customers with high predicted lifetime value, to ad platforms and bring campaign results back. It's a useful growth analytics example: defining what makes a valuable customer changes what you ask a campaign to optimize. Contact Databricks for access.

The 30-second lesson

What is growth analytics?

By Shane Butler

Growth analytics is the practice of putting numbers on how a business grows. It helps you estimate an opportunity, decide where to spend your time, and figure out what went wrong when the result doesn't match the plan.

I love growth analytics because you can get surprisingly far with very simple math and data you either surely have or that is super easy to estimate.

There’s a ton of simple tools and frameworks you can leverage, such as:

  • Growth paths and loops: map how people find you, buy, return, or bring in the next customer.
  • Growth accounting: separate new, returning, reactivated, and lost customers to see what is driving the change.
  • Opportunity sizing and forecasting: calculate what would have to be true to reach a goal and how the answer changes when an assumption is wrong.
  • Bottleneck and sensitivity analysis: identify which step limits growth and which improvement would make the biggest difference.
  • Channel quality: find which sources bring customers who actually buy, return, or refer others.
  • Unit economics: compare the cost of acquiring and serving a customer with the money that customer brings in.

And much much more. We could do a full issue on each of these. Hey maybe we will ;)

Jobs this week

And while we’re on the topic, here are 10 roles in data focused on growth analytics, ordered by the top of their advertised annual salary range.

Data Scientist, SMB Ads Growth at OpenAI

San Francisco. Up to US$515,000 base/year, plus equity.

OpenAI wants someone to define growth metrics, identify where advertisers get stuck, and measure which marketing investments bring in additional revenue.

Lead Data Scientist, Cloud Distribution & Growth at OpenAI

San Francisco or Seattle, hybrid. Up to US$445,000 base/year, plus equity.

OpenAI wants someone to explain what drives cloud usage and revenue, distinguish new demand from traffic that moved between channels, and recommend where to invest.

Data Scientist, Marketing at Figma

US hubs or remote US. Advertised base salary tops out at US$348,000/year; pay depends on level and location.

Figma wants someone to connect marketing campaigns to acquisition, product adoption, pipeline, and revenue, using experiments and causal inference to guide investment.

Marketing Analytics Lead, Enterprise Marketing at Anthropic

San Francisco or New York City, hybrid. Up to US$320,000 annual salary. Individual contributor.

Anthropic wants someone to own the metric definitions, data models, and measurement framework connecting marketing activity to pipeline, revenue, and product usage.

Staff Data Scientist, Marketing at Reddit

Remote US. Up to US$303,900 base/year.

Reddit wants someone to measure and improve its own marketing investments, including acquiring and retaining advertisers and bringing in new users.

Staff Data Scientist, Algorithm, Growth at Airwallex

San Francisco, hybrid. Up to US$299,000 base/year, plus equity and bonus. Also hiring in Seattle.

Airwallex wants someone to build predictive models and AI applications for growth, measure the causal impact of marketing initiatives, and use the results to decide what to do next.

Sr. Data Scientist, Performance Marketing at Pinterest

Remote US, with office visits once or twice a quarter. Up to US$287,749 base/year.

Pinterest wants someone to use incrementality tests, customer-value models, and experiments to work out how paid marketing affects user acquisition, engagement, and retention.

Data Scientist, Growth at Superhuman

San Francisco, Seattle, or New York City, hybrid. Up to US$275,000 base/year in those hubs.

Superhuman wants someone to investigate activation, conversion, retention, and cross-sell across its product suite, including how bundles affect customer value.

Senior Data Scientist, Growth at Glean

Mountain View or San Francisco, hybrid, four days in office. Up to US$260,000 base/year.

Glean wants someone to find where users get stuck, improve onboarding and product adoption, and turn growth ideas into experiments with clear success measures.

Senior Data Scientist - Growth at Mercury

US or Canada, including remote. Up to US$250,900 base/year in the US or CA$237,100 in Canada.

Mercury wants someone to own analysis across acquisition, activation, and retention, size growth opportunities, and help teams decide what to change based on experiments.

Join us on December 9 for Master Growth Analytics with AI, our free lesson with Runable.

What's happening at AI Analyst Lab

Last week

The Data Neighbor Podcast is back!

Hai, Sravya, and I have brought the podcast back. We're getting together to talk through what's changing in data, what we're trying with AI, and what it means for the people doing this work.

Catch up on our first two episodes:

How AI Is Changing Analytics

We talk about the work around business definitions, context, and AI evals, where to start with AI analytics, and what we're seeing in data jobs and interviews.

If Everyone Uses AI, How Do You Stand Out?

What makes a data person valuable when AI can write the SQL and build the dashboard? We get into choosing useful problems, getting work acted on, and keeping your own judgment.

Last week's lightning lessons

Missed either of last week's lightning lessons? Both recordings are available on Maven.

Build a Promotion Case That Gets Approved

Sravya and I worked through how promotion decisions get made, how to map your work to the next-level expectations, and how to build a record of impact before you're up for promotion. There's also a demo using AI to turn project notes into a promotion case.
Sravya and I worked through how promotion decisions get made, how to map your work to the next-level expectations, and how to build a record of impact before you're up for promotion. There's also a demo using AI to turn project notes into a promotion case.

Watch the promotion lesson

Check if your data is ready for AI

Hai and I worked through four levels of data readiness, from raw tables to tested business rules. Take one question your company asks often, look at the tables it needs, and work out what to fix first. This is a good place to start before trying to roll AI analytics out across the company.
Hai and I worked through four levels of data readiness, from raw tables to tested business rules. Take one question your company asks often, look at the tables it needs, and work out what to fix first. This is a good place to start before trying to roll AI analytics out across the company.

Watch the data readiness lesson

This week

A new Data Neighbor episode, out early

We usually release new episodes on Thursdays. With Thanksgiving in the US this week, we're releasing this one early. You can watch it now.

How AI Is Making Us Worse at Thinking

Hai and I get into what happens when AI starts making our judgment calls, and five ways to keep thinking for yourself. If you read Hai's Weekly Query last week, we go deeper into those ideas here.
Hai and I get into what happens when AI starts making our judgment calls, and five ways to keep thinking for yourself. If you read Hai's Weekly Query last week, we go deeper into those ideas here.

Watch this week's episode

Subscribe to Data Neighbor on YouTube

Coming up

Master Growth Analytics with AI

Wednesday, December 9, 10–11 a.m. Pacific. Free.

In partnership with Runable

How does your business actually grow, and where should you put your time next? We'll work through choosing a growth question, using AI to investigate the evidence, and deciding what to do with what you find. We'll use Runable for the walkthrough.
How does your business actually grow, and where should you put your time next? We'll work through choosing a growth question, using AI to investigate the evidence, and deciding what to do with what you find. We'll use Runable for the walkthrough.

Save your free spot

Enterprise AI Analytics for Data Leaders

Saturday, December 12, 8–11 a.m. Pacific. Half-day workshop. US$380.

With Hai Guan and Shane Butler

Building the context is one part of getting AI analytics to work across a company. Someone also has to decide where to start, what AI should take on, who owns the work, and what needs review before more people use it.
Building the context is one part of getting AI analytics to work across a company. Someone also has to decide where to start, what AI should take on, who owns the work, and what needs review before more people use it.

If that's becoming part of your job, join Hai and me. We'll work through those decisions, look at how to evaluate the tools you already have, and start building a 90/180-day rollout plan for your company.

Join us for Enterprise AI Analytics for Data Leaders

Where does the context your team relies on live today? Reply and let us know. I'd be interested to hear what you've tried.

See you next week,

Shane and Hai

Share this post

Shane Butler
Written by
Shane Butler
Co-founder, AI Analyst Lab

10+ years in product data science, causal inference and AI evaluation at Stripe, Nextdoor and Ontra.

Get next Tuesday's query.

Every Tuesday we go deep on one question top of mind in the data industry.

One email a week. Unsubscribe anytime.

Check your inbox to confirm

We just sent an email from [email protected] with the subject:

Important: confirm subscription to The Weekly Query

Click the button in that email. You need to confirm to get the newsletter.

Don't see it in a few minutes? Check your Spam, Promotions, and Updates folders.