Preparing your design workspace

Loading the problem and your latest saved attempt…

Design an LLM Brand Exposure Analytics Platform

Design a versioned analytics platform that extracts, resolves, and measures brand, company, and product mentions across a large corpus of LLM responses.

Problem statement

For this exercise, assume marketing analysts provide a corpus of LLM responses and need exposure metrics for brands, companies, and products.

The platform must recognize entity mentions, normalize spelling and formatting variants, distinguish ambiguous names such as Gemini, and separate brand names from ordinary words such as apple.

Analysts can inspect evidence, correct uncertain mappings, compare extraction versions, evaluate quality, run A/B experiments, and query aggregate exposure.

Design the data model, ingestion and extraction pipeline, entity catalog and resolution workflow, analytics serving path, evaluation system, versioning, and recovery. Exclude training a foundation model and generating the original responses.

What to build

  1. An analyst can ingest immutable LLM responses with prompt, model, locale, timestamp, and source metadata and track corpus progress.
  2. The platform extracts brand, company, and product mentions, normalizes surface-form variants, and maps each mention to a canonical entity or an explicit unresolved state.
  3. Analysts can inspect context and confidence for ambiguous or common-word mentions, submit corrections, and replay affected work without rewriting prior results.
  4. Analysts can query versioned exposure metrics by entity and segment, inspect supporting response evidence, evaluate extraction quality, and compare A/B variants.

At scale

  • Assume an initial corpus of 10 million responses, growing by 1 million responses per day; a response averages 2 KB before extracted metadata.
  • New responses should appear in aggregate dashboards within 15 minutes at p95 while interactive metric queries return within two seconds at p95.
  • A metric result must identify its corpus snapshot, entity-catalog version, and extraction version so the same query can be reproduced.
  • A reprocessing run or analyst correction must never mix old and new extraction output within one published metric snapshot.