Elasticsearch Relevance Studio

Elasticsearch Relevance Studio (ESRS) is Elastic’s tool for managing the full lifecycle of search relevance engineering on top of Elasticsearch — defining scenarios, collecting ground-truth judgments, building and benchmarking search strategies, and iterating to optimize relevance metrics. Its distinguishing bet is agentic AI: it ships with an MCP (Model Context Protocol) server so that AI agents can automate the whole loop, not just a human UI.

Status

Relevance Studio is published by Elastic on GitHub as a demonstrator / reference implementation (elastic/relevance-studio) rather than a supported product feature. Treat it as experimental — it codifies “generally accepted best practices” for relevance engineering into a runnable app.


Framing

The README frames the tool around the generative-AI shift in user expectations: people increasingly want the best answer the first time rather than a page of links to sift through. That raises the bar for relevance and makes disciplined, repeatable relevance engineering — the thing Relevance Studio standardizes — more important, especially for agentic search backends.

Core Concepts

  • Scenarios — distinct search use cases that need evaluation and optimization (the analog of a query/intent group).
  • Judgements — curated ground-truth ratings of document relevance for each scenario. A human interface uses drag-slider controls for fast rating; AI agents can also generate judgements, which humans then review and adjust.
  • Strategies — search approaches expressed as any Elasticsearch Search API configuration: lexical (BM25, analysis, synonyms), vector (kNN), semantic (ELSER), hybrid (RRF or linear), plus function/script score, rank features, rules, Reranking, and Learning to Rank.
  • Benchmarks — evaluations that rank strategies by relevance metrics and can be scheduled/re-run to detect model drift and catch regressions before production.

Metrics

Benchmarks compute four standard IR metrics:

Crucially, benchmarks also report unrated documents that matched a strategy/scenario — surfacing gaps in judgement coverage so you can improve the trustworthiness of the metrics themselves.

Agentic AI (MCP Server)

The headline feature: Relevance Studio bundles an MCP server exposing its operations as tools an AI agent can call. This lets an agent automate the entire lifecycle — reviewing content, defining scenarios, judging documents, building strategies, reading benchmark results, and iterating — turning relevance engineering into an agentic workflow. See Model Context Protocol.

Workflow Features

  • Real-time feedback — Ctrl/Cmd+Enter re-evaluates a strategy against judgements instantly while you edit it.
  • Drift detection & regression prevention — scheduled benchmarks surface degradation; benchmarks can gate a CI/CD pipeline.
  • AI-assisted judging — review and correct agent-generated judgements in the same UI.
  • Root-cause analytics — views to explain why a metric moved.

Architecture

  • Frontend — React web application.
  • Backend — Flask / Python services.
  • Data storeElasticsearch via the Search API; uses native search templates.
  • Observability — OpenTelemetry instrumentation.
  • Agent interface — MCP server for tool-using agents.

Companies

  • Elastic — publisher of Relevance Studio

Comparison