# How LangChain grew self-serve analytics questions 40x by giving its AI agent layered context

DevFeed: [How LangChain grew self-serve analytics questions 40x by giving its AI agent layered context](<https://devfeed.tech/articles/how-langchain-grew-self-serve-analytics-questions-40x-by-giving-its-ai-agent-layered-context-102650.md>)

Original publisher: [Read original article](<https://www.getdbt.com/blog/langchain-self-serve-analytics-ai-agent-context>)

Author: Daniel Poppy

Published: 2026-10-27T18:07:00Z

Content type: news

Language: en

Sources: [dbt Labs](<https://devfeed.tech/sources/dbt-labs.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [context](<https://devfeed.tech/topics/context.md>), [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [BigQuery](<https://devfeed.tech/topics/bigquery.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-analytics](<https://devfeed.tech/tags/ai-analytics.md>), [also](<https://devfeed.tech/tags/also.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [analytics-engineering](<https://devfeed.tech/tags/analytics-engineering.md>), [bigquery](<https://devfeed.tech/tags/bigquery.md>), [building](<https://devfeed.tech/tags/building.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [business](<https://devfeed.tech/tags/business.md>), [context](<https://devfeed.tech/tags/context.md>), [giving](<https://devfeed.tech/tags/giving.md>), [hex](<https://devfeed.tech/tags/hex.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [learn](<https://devfeed.tech/tags/learn.md>), [questions](<https://devfeed.tech/tags/questions.md>), [self-serve-analytics](<https://devfeed.tech/tags/self-serve-analytics.md>)

## AI overview

LangChain reports a 40x increase in self-serve analytics questions after giving its Hex agent layered context. It syncs dbt table and column descriptions into BigQuery and gives the agent access to the dbt repo and DAG, letting it inspect model logic and dependencies. In Hex, version-controlled workspace guides explain business terms and metrics, a semantic layer defines key metrics and joins consistently, and selective endorsements identify trusted models and dashboards; changes to endorsed dashboards require data team review before publishing. The data team shifted toward maintaining context so other departments can query the agent directly. LangChain says this works despite documentation lagging business changes, provided context is updated continuously, users learn how to use the agent, and the team measures impact to find gaps. Evals and further context enrichment through Hex's CLI are on its roadmap.

## Source excerpt

LangChain gave its Hex agent layered context, turning self-serve analytics questions from occasional to routine.