Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal
1Framing the ProblemChapter 1

Every search engine has a problem with pages that lie about being alive. A web server returns HTTP 200, which means "success," but the page itself says "item not found," shows an empty product listing, or displays a generic placeholder. These soft 404s waste crawl bandwidth and pollute the search index with pages that have no real content. Our job is to build a classifier that catches them at crawl time, before they ever enter the index.

The primary surface is every URL returning HTTP 200 during a web-scale crawl, roughly billions of pages per day. The business objective is maximizing index quality: keeping genuine content in and soft 404s out. Incorrectly deindexing a real page is more costly per item than missing a single soft 404, but undetected soft 404s at scale waste crawl budget and leave users landing on empty pages.

The ML task is binary classification. Given a crawled page's parsed HTML text, HTTP headers, URL structure, and template-level signals, predict the probability that the page is a soft 404. The indexing pipeline maps that probability to one of three actions: deindex if confident, deprioritize and recrawl if borderline, or pass through to the index. The first thing I would clarify in the interview is what data we actually have at classification time. Rendered screenshots are available for maybe 1-10% of pages, and engagement data only exists for pages already in the index. The system must work from crawl-time signals alone, with richer modalities layered on only when they exist.

At a high level, the crawler fetches a URL and the crawl pipeline attaches metadata. The classifier scores the page using parsed HTML, URL features, and template-level aggregates from a feature store. The indexing decision service applies the threshold. In a nearline loop, crawl events update per-template soft-404 rates. In an offline loop, the model retrains on a growing labeled set bootstrapped from heuristic rules, human annotation, and active learning.

Your progressLogin to save progress
Spot an issue or have a suggestion?