Automated Search Quality Evaluation Using LLMs for Typeahead Suggestions

linkedin · Tech · 2024 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Search quality evaluation

LinkedIn needed to evaluate typeahead suggestion quality for a personalized, multi-vertical search surface at over-billion-member scale without waiting days or weeks for human evaluation cycles.

Constraints:

Architecture

LinkedIn built a GenAI Typeahead Quality Evaluator around OpenAI GPT served through Azure. The team first created measurement guidelines for each suggestion type, simplified judgments to binary high/low quality, and built a golden test set of query/member-id pairs sampled from clicked, bypass, abandoned, and random sessions across intent categories and member-life-cycle segments. Prompt templates include identity, task guidelines, optional few-shot examples, input, and output sections tailored by suggestion type. The batch evaluation pipeline runs experiment configs against the golden set, collects typeahead responses, generates prompts for GPT-3.5 Turbo, batch-calls the API for per-suggestion quality scores and reasoning, and computes TyahQuality@1/3/5/10 metrics.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  golden-test-set[Golden test set] --> typeahead-backend[Typeahead backend]
  typeahead-backend --> prompt-generation-layer[Prompt generation layer]
  prompt-generation-layer --> azure-gpt-evaluator[Azure GPT evaluator]
  azure-gpt-evaluator --> quality-score-postprocessor[Quality score postprocessor]
  quality-score-postprocessor --> experiment-reporting[Experiment reporting]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Golden test set Represents platform traffic with query/member-id pairs across intents and session types. Typeahead backend
Typeahead backend Returns suggestions for experiment configurations over the golden test set. Golden test set, Prompt generation layer
Prompt generation layer Builds specialized GPT prompts by result type using guidelines, examples, inputs, and output format. Typeahead backend, Azure GPT evaluator
Azure GPT evaluator Scores each suggestion as high or low quality and returns reasoning. Prompt generation layer, Quality score postprocessor
Quality score postprocessor Calculates TyahQuality@1/3/5/10 and experiment deltas from GPT scores. Azure GPT evaluator, Experiment reporting
Experiment reporting Shows quality-score changes and low-quality suggestion reduction for typeahead experiments. Quality score postprocessor

Data flow

Experiment configurations generate typeahead requests on the golden test set. LinkedIn collects responses, builds result-type-specific prompts, sends them to GPT through Azure, post-processes binary scores and reasoning, and aggregates ranked quality scores across sessions to measure experiment impact.

4 supporting quotes
“* Generate requests with the experiment configs on the Golden Test Set, then call Typeahead backend * Collect typeahead responses on the golden test set”article, stated
“* Collect typeahead responses on the golden test set * Generate Prompts for GPT 3.5 Turbo on the responses suggestions”article, stated
“* Generate Prompts for GPT 3.5 Turbo on the responses suggestions * Batch call GPT API to perform quality evaluations on the responses suggestions”article, stated
“* Post processing GPT responses to calculate TypeaheadQuality scores This evaluation pipeline not only accelerates our ability to assess the impact of new experiments but also ensures a high degree of consistency and objectivity in our quality assessments.”article, stated

Why this architecture

LinkedIn needed automated evaluation, not another serving model, because typeahead quality was already bottlenecked by human review. Binary scoring reduces ambiguity, while tailored prompt templates reflect the fact that people, jobs, entities, and plain text require different notions of quality. Query/member-id golden sets preserve personalization context. Ranked metrics emphasize the top suggestions members see first.

4 supporting quotes
“using that very hands on approach is difficult to sustain for typeahead suggestions given the growth of our platform”article, stated
“Then, we categorized the suggestion quality into either high or low to reduce the amount of gray area or uncertainty caused by subjective judgment.”article, stated
“Given typeahead suggestions are personalized, the golden test set comprises {query, member id} pairs and we adhered to the following principles to ensure it accurately reflects the typeahead user experience for all members:”article, stated
“Since typeahead is a ranked surface, the quality of top ranked suggestions is more important than the lower ranked suggestions”article, stated

Models used: OpenAI GPT model served through Azure · GPT 3.5 Turbo

Scale

Alternatives considered (roads not taken)

Human-only search quality evaluation

Rejected because: Manual review could not sustain the platform's growth and iteration needs.

“Search quality assessment has historically hinged on human evaluation to achieve our high bar on quality. However, using that very hands on approach is difficult to sustain for typeahead suggestions given the growth of our platform and the challenges around scalability for human evaluation.”article, stated
“However, using that very hands on approach is difficult to sustain for typeahead suggestions given the growth of our platform and the challenges around scalability for human evaluation.”article, stated

One universal prompt for all suggestion types

Rejected because: Different result types require different identity, guidelines, input fields, and examples.

“We crafted specialized evaluation prompt templates for each of the result types, ensuring they align with the specific quality guideline and data structure of that result type.”article, stated
“* IDENTITY and TASK GUIDELINES are very different for Entity suggestions vs for a Job suggestion or a plain text suggestion, given the different nature of search tasks for each of the result type.”article, stated

Evaluate only clicked typeahead sessions

Rejected because: Bypass and abandoned sessions are crucial for understanding typeahead quality problems.

“Uses sufficient samples from bypass and abandoned sessions: In addition to clicked sessions, bypass and abandoned sessions are crucial for assessing and improving typeahead quality.”article, stated

Patterns

llm-as-judge (evaluation)

GPT scores typeahead suggestions as high or low quality and explains the score.

“provide an output as a score of either 1( high-quality) or 0 (low-quality) for the suggestion.”article, stated

eval-driven-development (evaluation)

New typeahead relevance experiments are run through the automated evaluator to measure quality-score deltas quickly.

“For a new experiment on typeahead relevance, we perform GenAI quality evaluation”article, stated

prompt-versioning (prompt-operations)

The team iterates prompt templates after comparing GPT judgments with human evaluations.

“With several cycles of cross-evaluation on GPT outputs and prompt iterations”article, stated

structured-output-contract (output-control)

Prompts require reasoning plus a binary score so downstream metrics can be computed consistently.

“Provide reasoning for your score and then give the score ONLY AS either 1 or 0”article, stated

Tradeoffs

Use binary high/low scoring

Chose 1 or 0 suggestion quality over multi-point subjective scales.

Rationale: Binary labels reduce gray areas in a subjective personalized evaluation task.

“we categorized the suggestion quality into either high or low to reduce the amount of gray area”article, stated

Sample traffic into a golden test set

Chose pre-defined query/member-id pairs from platform traffic over ad hoc evaluator prompts.

Rationale: A fixed representative set allows repeatable experiment comparisons across the typeahead experience.

“we used a golden test set, which is a pre-defined query set sampled from platform traffic”article, stated

Use ranked quality metrics

Chose TyahQuality@1/3/5/10 over unweighted average over all suggestions only.

Rationale: Top-ranked suggestions matter more because they are more visible to members.

“the quality of top ranked suggestions is more important than the lower ranked suggestions because of their visibility.”article, stated

Gotchas (what bit them)

Typeahead evaluation criteria differ by vertical.

Root cause: People, companies, jobs, skills, and plain text suggestions represent different user intents and data structures.

Resolution: Create specialized prompt templates and examples for each result type.

“Typeahead displays varied types of results**,** such as People entities, Company entities, Job suggestions, plain text suggestions”article, stated
“We crafted specialized evaluation prompt templates for each of the result types”article, stated

Personalization makes universal quality labels subjective.

Root cause: The same query can yield different correct suggestions for different members.

Resolution: Build the golden set from query/member-id pairs and include member lifecycle sampling.

“the same query ("Andrew") will yield different suggestions for different users”article, stated
“When sampling member ids for the golden test set, we leverage the Member Life Cycle (MLC) data”article, stated

Automated evaluator accuracy required repeated calibration.

Root cause: GPT outputs did not initially align perfectly with human judgments across ambiguous suggestion types.

Resolution: Run several cycles of cross-evaluation and prompt iteration using human-GPT discrepancies.

“achieving these results required rigorous quality standards and several cycles of cross-evaluation on GPT outputs and prompt iterations.”article, stated
“we learned from the instances where GPT evaluations did not align with human evaluation.”article, stated

Evaluation

LinkedIn evaluates typeahead experiments by running GPT-scored suggestions over a golden test set and calculating ranked TyahQuality metrics before and after changes.

Metrics: TyahQuality1 · TyahQuality3 · TyahQuality5 · TyahQuality10 · low-quality suggestion reduction · evaluation turnaround time

3 supporting quotes
“We defined four typeahead quality scores to help ground our evaluation”article, stated
“quality score of the top suggestion”article, stated
“average quality scores of all (maximum 10) typeahead suggestion”article, stated

Outcomes

The system evaluates typeahead search for LinkedIn's more than 1 billion members using representative golden-set sampling.

"TyahQuality10

66.70%

73.50%"

“a notable 6.8% absolute improvement in the typeahead quality score (TyahQuality@10)”article, stated
“which corresponds to a 20% reduction in low-quality suggestions.”article, stated