How we optimized LLM use for cost, quality, and safety to facilitate writing postmortems
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.
Related posts
- Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis
Zalando Engineering mediumAdeptZalando 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.
- Detecting malicious pull requests at scale with LLMs
Datadog Engineering mediumAdeptDatadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.
- We used GPT-4 during a hackathon—here's what we learned
incident.io mediumAdeptA two-day hackathon at incident.io prototyped GPT-3.5/GPT-4 features: incident handover summaries generated from full Slack channels, a reply-with-❓ jargon explainer, and natural-language incident filters. The team dropped all of them for the same reasons. Responses took 20-30 seconds, and the 4,096-token context limit covers prompt plus response, so only about 35% of a Slack channel fit. Filters needed huge name-to-ID mappings, and chunked 'summarize the summaries' workarounds would multiply latency. The other lessons were that prompt engineering is brittle, data-privacy controls would be needed before shipping, and latency and context size are the things to watch before revisiting.
- Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases
Hugging Face easyNovicePatronus and Hugging Face's Enterprise Scenarios Leaderboard evaluates language models on six enterprise-oriented tasks: FinanceBench, Legal Confidentiality, Creative Writing, Customer Support Dialogue, Toxicity and Enterprise PII. Scoring varies by task. FinanceBench and customer support use few-shot GPT-3.5 judging, legal uses exact-match yes/no accuracy, creative writing uses the EnDEX engagingness model, toxicity uses Perspective API, and PII uses a classifier trained on 3,000 labeled examples. To limit test-set contamination, four of the six datasets are kept closed, with only validation sets released. Submitted models must be public and loadable via Hugging Face AutoClasses.
- 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.