Skip to content

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

Airbnb Engineering 7 min read Research hardMaster

CASTLE: training natural language search before the first real query

CASTLE solves the cold-start problem for Airbnb's natural language search by generating synthetic queries and relevance labels together. It uses contrastive listing pairs from de-identified booking sessions: a booked listing is the positive and a viewed-but-not-booked one the negative, so the label is correct by construction. Template, few-shot (about 500 user-research seed queries) and attribute-grounded prompts, plus a variety mechanism, prevent query collapse. Query-distribution KL divergence against real users is 1.01, versus 9.33 for the best baseline (Promptagator), and human raters agreed with the labels 91–93% of the time. An LLM Virtual Judge covers listings with no booking history, and a CASTLE-R variant seeds generation from real queries once traffic exists.

Related posts

  • How Etsy Uses LLMs to Improve Search Relevance

    Etsy Code as Craft mediumAdept

    Etsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant. Human-labeled golden data validates an o3-based few-shot chain-of-thought annotator with self-consistency sampling. That annotator generates training data for a cascaded distillation stack: a fine-tuned Qwen 3 VL 4B teacher for daily offline evaluation and A/B monitoring via vLLM, and a BERT two-tower student that adds under 10ms in real-time search. The student filters irrelevant results, supplies ranking features and loss weights, and boosts relevant listings, raising fully relevant results from 58% to 62%, though engagement sometimes dips as relevance rises.

  • Search Quality Assurance with AI as a Judge

    Zalando Engineering mediumAdept

    Zalando validated search quality for new markets (Luxembourg, Portugal, Greece) before launch by using a multimodal LLM-as-a-judge instead of manual expert review. Test queries are drawn from existing markets, clustered by NER-tag sets into intent segments, ranked by traffic share and translated with an LLM. An Airflow pipeline then retrieves results from the search service and has GPT-4o score each result 0–4 using product data and images, with ElastiCache deduplicating product lookups and (query, product) judgements to cut cost. Running 1,500 top segments per market surfaced lemmatization gaps, unrecognized terms such as Portuguese "ténis" and "menina", and missing NER tags in Greek, all fixed before go-live.

  • Back to The Future: Evaluating AI Agents on Predicting Future Events

    Hugging Face mediumAdept

    FutureBench evaluates AI agents on predicting real future events, which rules out training-data contamination by design and makes every answer verifiable once the outcome is known. Questions come from two sources: a smolagents pipeline (DeepSeek-V3, Firecrawl, Tavily) that turns front-page news into about 5 one-week-horizon questions per session, and filtered Polymarket questions at roughly 8 per week. The benchmark compares agent frameworks, tools and LLMs by holding two of the three fixed. Early results show agents with search beating models without tools, with distinct strategies: Claude scrapes heavily, using more searches and far more tokens and cost, while GPT-4.1 leans on consensus forecasts from search results.

  • Training 100x Cheaper Retrieval models Neon and Castform

    Neon easyNovice

    Castform uses data stored in Neon Postgres, exposed through Lakebase Search's BM25 and vector functions, to RL post-train a 4B open-source model for agentic retrieval. The post claims the model matches GPT-5.6 Sol's accuracy at about 100x lower cost; a frontier multi-turn search request takes over 10s and costs around $0.03. The pipeline generates synthetic question/answer tasks from the existing corpus. Training uses a hybrid search tool with RRF merging and a reward function that scores retrieval, citation and answer correctness. Neon's autoscaling absorbs the bursty search load from parallel rollouts, and branching is positioned as a way to give stateful agents isolated environments.

  • Teaching Sidekick to say no: automated data curation with LLM judge consensus

    Shopify Engineering mediumAdept

    Production training data for Shopify's Sidekick segmentation skill contained only successful queries, so the fine-tuned model never learned to refuse impossible requests and instead generated queries returning zero results. Naively merging a small human-annotated refusal dataset (~1,200 examples from Toloka) with the production corpus produced contradictory labels, so the team used that seed to calibrate four frontier LLM judges. Labels are accepted only on unanimous agreement on both verdict and reasoning, using a mutually exclusive taxonomy: solvable with more context, missing capability, wrong skill, or ambiguous. The curated data raised the segmentation pass rate from 0.762 (naive merge) to 0.798, with 86.3% refusal accuracy at a 4.6% false positive rate and judge kappa above 0.75. The pipeline now runs as a flywheel that feeds new production traffic back into training.

The quest for software engineering knowledge.

Look:
Layout: