Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zalando Engineering 18 min read Case study mediumAdept

Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis

Zalando built a multi-stage LLM pipeline (summarization, classification, analyzer digests, cross-incident patterns, investment opportunities) to mine thousands of postmortems for recurring failure patterns in its datastores: Postgres, DynamoDB, ElastiCache, S3 and Elasticsearch. They chose chained single-purpose prompts in a map-fold pattern over large-context models to avoid "lost in the middle" effects, cost and latency. Strict no-inference prompts and negative examples counter hallucinations and surface attribution errors. NotebookLM alone gave roughly a 3x speedup but hallucinated and lost context, and human curation at each stage remains essential for trust and accuracy.

Related posts

  • How we optimized LLM use for cost, quality, and safety to facilitate writing postmortems

    Datadog Engineering mediumAdept

    Datadog's Bits AI drafts incident postmortems by feeding structured Incident Management metadata and scrubbed Slack discussions into a mix of GPT-3.5 and GPT-4 models, one query per template section. Generating sections in parallel cut draft time from over 12 minutes to under one minute, but the sections overlapped, so follow-up LLM passes remove repetition and restructure the text. Assigning models per section kept costs down, and lower temperature and frequency penalty helped reduce hallucinations and repetition. Quality was judged mainly through author surveys on accuracy, conciseness, coherence, coverage and objectivity, since ROUGE/BLEU proved of limited use; secrets are swapped for placeholders before the model sees them, and claims cite source Slack messages.

  • Can LLMs replace on call SREs today?

    ClickHouse mediumAdept

    LLMs were tested on autonomous root cause analysis of production incidents and fell short of replacing on-call SREs. ClickHouse gave Claude Sonnet 4, OpenAI o3, GPT-4.1 and Gemini 2.5 Pro (plus GPT-5) access to OpenTelemetry demo telemetry stored in ClickHouse via an MCP server and LibreChat, injected four anomalies with feature flags (payment failures for gold-tier users, a recommendation cache memory leak, a product catalog error and a payment cache leak), and compared each model against a manual ClickStack investigation on accuracy, guidance needed, token usage and time. Some models found simple root causes from a naive prompt, while others chased irrelevant latency signals or needed explicit hints. The recommendation is to use LLMs as assistants for summarizing, drafting updates and suggesting next steps, with engineers in control and backed by a fast, searchable observability stack.

  • Making Failure Diagnosis Reliable with Pensive AI

    Netflix TechBlog mediumAdept

    Netflix augmented Pensive, its rule-based failure diagnosis system for data and ML workloads, with LLM-based error extraction and on-demand debugging after roughly half of seven million failure classifications landed in an "unknown" bucket. Extraction numbers log lines and has the model return only start and end line indices, so cost stays bounded, hallucinated text is avoided, and calls fit under Maestro's 90-second deadline. On-demand debugging is cached per step attempt, using conditional writes to deduplicate concurrent requests, and streams full-snapshot SSE events that are republished over GraphQL WebSockets. Evals use frozen legacy regex rules as reference labels, logs archived to S3 as stable inputs, LLM judges for inclusion and precision, and noise and latency checks; AI extraction now covers 100% of failures.

  • Leveraging AI for efficient incident response

    Meta Engineering mediumAdept

    Meta's AI-assisted root cause analysis system narrows suspect code changes in its web monorepo by combining a heuristic retriever with a fine-tuned Llama 2 (7B) ranker. The retriever uses signals such as code and directory ownership and the runtime code graph to cut thousands of changes down to a few hundred. The ranker then runs an 'election': each prompt holds up to 20 changes and picks the top five, and results are aggregated and repeated until five candidates remain. Backtesting shows the root cause lands in the top five for 42% of investigations at creation time. The biggest gain came from continued pre-training on internal artifacts plus supervised fine-tuning on about 5,000 historical RCA examples, including logprob-ranked list outputs, while confidence thresholds suppress low-confidence suggestions in favor of precision.

  • LLM Cost Optimization: 3 Patterns to Cut LLM Token Spend

    Honeycomb mediumAdept

    LLM token spend is best reduced by using traces to find three waste patterns: repeated input context that doesn't improve results, retry storms and runaway agent loops, and output tokens that don't lift outcomes. For each, compare expensive and normal cohorts on high-cardinality attributes (prompt version, model, workflow step, tenant, retries) and apply targeted fixes such as filtering retrieval, summarizing history, retry limits, tighter termination conditions and structured outputs. Treat every cost cut as a production change: baseline cost per successful outcome, change one pattern at a time, and roll back if quality guardrails like completion, acceptance or parsing success regress.

The quest for software engineering knowledge.

Look:
Layout: