Overview
This post references "Evaluating Search Relevance Part 2 — Phi-3 as relevance judge", an article from Elastic's Search Labs blog:
- Source: https://www.elastic.co/search-labs/blog/evaluating-search-relevance-part-2
- Topic: practical experience using the Phi-3 LLM family as an automated relevance judge for evaluating Elasticsearch search quality.
- Part of a series on search relevance evaluation, this installment focuses on LLM-as-judge: using small, locally deployable models (Phi-3) to score query–document relevance instead of relying solely on manual judgments.
- The approach fits into the standard search stack — retrieval → reranking → generation — where relevance evaluation traditionally uses human-labeled graded relevance and metrics like nDCG@10, MRR, Recall@k.
- Using a small model as judge offers practical advantages: lower cost and latency, no data egress, and the ability to scale judgments across large query sets.
- Caveats discussed in the broader context: LLM judgments should be cross-validated against human ratings, since judge models can exhibit bias, inconsistency, or hallucination; offline metric gains do not always translate to online user satisfaction.
- Open problems flagged for this space include evaluation trustworthiness, cost budgets, safety, and cross-lingual generalization.
- The original article should be consulted for concrete experimental numbers; this post is a summary based on the abstract and metadata.
- Related reading in the same collection: PDF retrieval with vision-language models (ColPali), dynamic filtering for web search accuracy, and clickstream-based analyses of ChatGPT Search.
- IR: Information Retrieval
- LTR: Learning to Rank
- nDCG: Normalized Discounted Cumulative Gain, a ranking quality metric
- LLM-as-judge: using a language model to automatically assess output or relevance quality
- RAG: Retrieval-Augmented Generation
Key points
Engineering checklist highlights
| Area | Concern | Suggested practice | |------|---------|--------------------| | Data | PII, versioning | Anonymize, partition indexes, versioned embeddings | | Latency | p99 budget | Cascade retrieval, early stopping, caching | | Quality | Offline vs. online gap | Interleaving experiments, human audits of judge outputs | | Safety | Poisoned/biased sources | Source allow-lists, output filtering | | Cost | Per-query token/GPU usage | Route to small models, distillation, hybrid sparse+dense |