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:
- The application had to convert natural language requests into curated IDs and values from transactional and predictive data products.
- Audience-building sessions required conversational memory, dynamic updates, and data consistency across unrelated conversations.
- Lightweight prompt input/output logging did not scale as the user base expanded.
- Failures in nested LLM reasoning could cascade into incorrect or hallucinated audience segments.
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
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
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
Models used: LangSmith · LangChain · RAG · vLLM · Claude via AWS Bedrock · Databricks model endpoints · custom agentic code · overseer agent · researcher agent
Scale
- Acxiom has operated for over 55 years across the US, UK, Germany, China, Poland, and Mexico.“For over 55 years, its teams across the US, UK, Germany, China, Poland, and Mexico”article, stated
- A single user interaction could involve more than 60 LLM calls.“requests that involved more than 60 LLM calls and 200k tokens for a single user interaction.”article, stated
- A single user interaction could involve 200k tokens.“requests that involved more than 60 LLM calls and 200k tokens for a single user interaction.”article, stated
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.
Reengineer observability for each new agent architecture
Rejected because: LangSmith's arbitrary-code logging and annotations adapted as overseer and researcher agents were added.
Patterns
observability-tracing (operations)
LangSmith traces nested LLM calls, function executions, metadata, token usage, and utility workflows to debug audience-building agents.
rag-retrieval (retrieval)
The segmentation workflow uses RAG over Acxiom metadata and data dictionaries to ground audience attributes.
agent-memory (context)
The application required long-term conversational memory to maintain audience-building context across unrelated conversations.
multi-agent-orchestration (orchestration)
Acxiom added overseer and researcher agents as the audience-building architecture evolved.
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.
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.
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.
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.
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.
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
Outcomes
- Engineers gained streamlined debugging for nested LLM calls and RAG agents.
- Audience segment creation became more accurate and dynamic.
- The observability layer scaled without reengineering as user demands and agent complexity grew.
- Token and call visibility informed cost management.
The source cites individual interactions with more than 60 LLM calls and 200k tokens, plus Acxiom's global operations across six countries.