Design a Safe Review Summarization Platform
Ingest customer reviews, generate fresh product-level summaries, and give internal operators a privacy-safe, abuse-resistant dashboard.
Problem statement
For this exercise, assume a marketplace receives customer reviews for millions of products. Internal product and trust teams need a dashboard that shows review trends, evidence-linked summaries, and safety signals.
Reviews are untrusted input: they may contain personal information, policy violations, prompt-injection text, or coordinated abuse.
The platform must ingest versioned reviews and moderation outcomes, sanitize and classify content, generate summaries through a versioned language-model workflow, retain traceable evidence, and serve authorized dashboard queries.
A summary must never be treated as authoritative when its evidence is stale, deleted, access-restricted, or rejected by safety policy. Design the ingestion, storage, sanitization, model-orchestration, summary-versioning, dashboard, privacy, and recovery boundaries.
Review authoring, marketplace ranking, and training foundation models are outside scope.
What to build
- Ingest review creates, edits, deletions, access changes, and moderation outcomes as ordered versioned facts.
- Generate evidence-linked product summaries only from sanitized, policy-eligible review versions and expose freshness and model-version metadata.
- Authorized internal users can search products, inspect trends and summaries, and drill into permitted supporting evidence without exposing restricted personal data.
- Operators can retract unsafe output, invalidate affected summaries, replay corrected evidence, and audit every model and policy decision.
At scale
- For this exercise, assume 50,000 review or moderation events per second at peak across 20 million products.
- Keep accepted review events queryable within 30 seconds and refresh an affected product summary within five minutes at p95.
- Serve 5,000 internal dashboard queries per second with 500-millisecond p95 latency for cached summary views.
- Retain immutable review-version and policy-decision evidence for one year while completing verified personal-data erasure from serving and derived summaries within 24 hours.