LLM Observability for Enhanced Audience Segmentation Systems

acxiom · Media & Entertainment · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Marketing audience segmentation

Acxiom needed robust observability for a LangChain/RAG-based audience segmentation application whose multi-step LLM reasoning could hallucinate or omit data as usage and agent complexity grew.

Constraints:

Architecture

Acxiom kept its LangChain RAG and custom agent code for audience building, then adopted LangSmith as the observability and testing layer. LangSmith decorators provide visibility into LLM calls, function executions, utility workflows, nested traces, metadata, token usage, and model calls across a hybrid stack that includes vLLM, Claude via AWS Bedrock, and Databricks model endpoints. The architecture supports newer overseer and researcher agents without rebuilding observability.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Natural_language_audience_request["Natural language audience request"] --> LangChain_RAG_workflow["LangChain RAG workflow"]
  LangChain_RAG_workflow --> Data_catalog_metadata["Data catalog metadata"]
  LangChain_RAG_workflow --> Custom_agent_code["Custom agent code"]
  Custom_agent_code --> Hybrid_model_ecosystem["Hybrid model ecosystem"]
  Custom_agent_code --> Audience_JSON_output["Audience JSON output"]
  Custom_agent_code --> LangSmith_observability["LangSmith observability"]
  Hybrid_model_ecosystem --> LangSmith_observability
  LangSmith_observability --> Tree_structured_trace_visualization["Tree-structured trace visualization"]
  Overseer_and_researcher_agents["Overseer and researcher agents"] --> Custom_agent_code
  Overseer_and_researcher_agents --> LangSmith_observability
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Natural language audience request User input describing target audience criteria in everyday language. LangChain RAG workflow
LangChain RAG workflow Retrieves metadata and data dictionary descriptions from Acxiom data products. Natural language audience request, Custom agent code, Data catalog metadata
Data catalog metadata Descriptions and dictionary information for transactional and predictive data products. LangChain RAG workflow, Custom agent code
Custom agent code Agentic audience-building logic that searches attributes, updates segments, and produces JSON IDs/values. LangChain RAG workflow, Hybrid model ecosystem, LangSmith observability
Hybrid model ecosystem Open-source and proprietary model endpoints including vLLM, Claude through AWS Bedrock, and Databricks endpoints. Custom agent code, LangSmith observability
LangSmith observability Tracing, testing, metadata, and annotation layer for debugging nested LLM and agent workflows. Custom agent code, Tree-structured trace visualization, Unit test annotations
Tree-structured trace visualization Trace UI used to inspect more than 60 LLM calls and 200k tokens in a single interaction. LangSmith observability
Overseer and researcher agents Additional agents added as the architecture evolved for nuanced audience-building decisions. Custom agent code, LangSmith observability
Audience JSON output Structured curated IDs and values that define the target audience segment. Custom agent code

Data flow

A marketer submits a natural-language audience request. LangChain RAG retrieves metadata and data dictionary information from Acxiom data products, custom agent code searches attributes and builds a JSON segment, and LangSmith traces LLM calls, function executions, utility workflows, token usage, and metadata across the nested workflow. Engineers use traces to debug hallucinations, omissions, and bottlenecks.

3 supporting quotes
“The application then needed to (1) deliver a JSON structure containing curated IDs and values from Acxiom’s transactional and predictive data products”article, stated
“The RAG workflow would only use metadata and the data dictionary of Acxiom’s core data products with detailed descriptions.”article, stated
“LangSmith provided the Acxiom team full visibility into LLM calls, function executions, and utility workflows”article, stated

Why this architecture

The application already used RAG and agents to ground audience creation in Acxiom data products, but observability became the scaling layer: LangSmith made nested reasoning debuggable, kept the hybrid model stack intact, and adapted as new agents were added.

3 supporting quotes
“LangSmith integrated with Acxiom’s existing LangChain-based codebase with little additional effort.”article, stated
“LangSmith’s flexible support for a wide range of models — including open-source vLLM, Claude via AWS Bedrock, and Databricks’ model endpoints”article, stated
“log and annotate arbitrary code allowed the team to adapt as new agents, such as an overseer and researcher agent, were added”article, stated

Models used: LangSmith · LangChain · RAG · vLLM · Claude via AWS Bedrock · Databricks model endpoints · custom agentic code · overseer agent · researcher agent

Scale

Alternatives considered (roads not taken)

Lightweight prompt input/output logging

Rejected because: It did not scale as usage expanded and could not support complex debugging.

“the team realized that lightweight logging solutions like this would not scale effectively.”article, stated
“The original logging mechanism was limited, making it difficult to scale across multiple users.”article, stated

Reengineer observability for each new agent architecture

Rejected because: LangSmith's arbitrary-code logging and annotations adapted as overseer and researcher agents were added.

“the team to adapt as new agents, such as an overseer and researcher agent, were added to the architecture”article, stated

Patterns

observability-tracing (operations)

LangSmith traces nested LLM calls, function executions, metadata, token usage, and utility workflows to debug audience-building agents.

“LangSmith provided the Acxiom team full visibility into LLM calls, function executions, and utility workflows”article, stated
“Visibility into token and call usage informed cost management strategies”article, stated

rag-retrieval (retrieval)

The segmentation workflow uses RAG over Acxiom metadata and data dictionaries to ground audience attributes.

“the team designed a workflow using LangChain's Retrieval-Augmented Generation (RAG) tools with custom agentic code.”article, stated

agent-memory (context)

The application required long-term conversational memory to maintain audience-building context across unrelated conversations.

“* Conversational memory: Have long-term memory for maintaining context across unrelated user conversations while building audience segments.”article, stated

multi-agent-orchestration (orchestration)

Acxiom added overseer and researcher agents as the audience-building architecture evolved.

“new agents, such as an overseer and researcher agent, were added to the architecture for more nuanced decision-making”article, stated

Tradeoffs

Adopt LangSmith rather than maintain custom logging.

Chose Dedicated observability platform over Lightweight prompt input/output logs.

Rationale: Nested LLM workflows needed scalable traces, annotations, metadata, and token/call visibility.

“Instead, they needed a robust observability platform to properly support the agent application’s growing user base.”article, stated
“full visibility into LLM calls, function executions, and utility workflows”article, stated

Keep a hybrid model ecosystem.

Chose vLLM, Claude via AWS Bedrock, and Databricks endpoints over Standardizing on one model provider for observability simplicity.

Rationale: LangSmith's model support let Acxiom retain its existing stack without disruption.

“allowed Acxiom to continue using their existing technology stack without disruption.”article, stated

Gotchas (what bit them)

Reasoning failures cascaded through the agent workflow.

Root cause: Multiple chained LLM calls meant an early omission or hallucination could propagate into wrong audience segments.

Resolution: Use tree-structured traces and metadata tracking to debug nested calls and bottlenecks.

“Failures or omissions in LLM reasoning cascaded into incorrect or hallucinated results.”article, stated
“the tree-structured trace visualization and metadata tracking tools in LangSmith were particularly helpful.”article, stated

Prompt-only logging broke down as the user base grew.

Root cause: Simple input/output logs did not capture enough nested execution detail and did not scale across users.

Resolution: Adopt a robust observability platform with decorators and arbitrary-code annotations.

“The Acxiom team initially developed a prompt input/output logging system”article, stated
“lightweight logging solutions like this would not scale effectively.”article, stated

Audience updates risked forgetting or hallucinating prior attributes.

Root cause: Dynamic segment refinement requires stateful data consistency across turns.

Resolution: Track conversation memory, attribute-specific searches, and traces over the agent workflow.

“* Dynamic updates: Be able to refine or update audience segments during the session.”article, stated
“Perform accurate attribute-specific searches without forgetting or hallucinating previously processed information.”article, stated

Evaluation

Acxiom used LangSmith traces, metadata, annotations, unit-test support, token/call visibility, and debugging of complex interactions to improve audience segment quality and cost management.

Metrics: more than 60 LLM calls in a single interaction · 200k tokens in a single interaction · token usage · call usage · debug trace visibility

“requests that involved more than 60 LLM calls and 200k tokens for a single user interaction.”article, stated
“Visibility into token and call usage informed cost management strategies”article, stated

Outcomes

The source cites individual interactions with more than 60 LLM calls and 200k tokens, plus Acxiom's global operations across six countries.

3 supporting quotes
“* Streamlined debugging for campaign optimization: LangSmith’s deep visibility into nested LLM calls and RAG agents simplified troubleshooting”article, stated
“* Scalable growth for marketing initiatives: The system could handle increasing user demands and complexity without needing to reengineer the observability layer.”article, stated
“* Optimized token usage: Visibility into token and call usage informed cost management strategies”article, stated