SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
Search Quality Evaluation
a Developer Perspective
Andrea Gazzarini - Software Engineer, Sease Ltd
26th June 2018
Apache Lucene/Solr
London
Apache Lucene/Solr
LondonWho I am
▪ SOFTWARE ENGINEER SINCE 1999
▪ “HERMIT” SOFTWARE ENGINEER SINCE 2010
▪ JAVA PASSIONATE
▪ INFORMATION RETRIEVAL PASSIONATE
▪ APACHE SOLR / LUCENE ENTHUSIAST
▪ APACHE QPID (PAST) COMMITTER
▪ HUSBAND & FATHER
▪ BASS PLAYER!
Andrea Gazzarini
VIGNANELLO
Apache Lucene/Solr
LondonSease
Search Services
● Open Source Enthusiasts
● Apache Lucene/Solr experts
! Community Contributors
● Active Researchers
● Hot Trends : Learning To Rank, Document Similarity,
Measuring Search Quality, Relevancy Tuning
Agenda
Apache Lucene/Solr
London
✓ Search Quality Evaluation
‣ Context overview
‣ Correctness
‣ Evaluation Measures
➢ Rated Ranking Evaluator (RRE)
➢ Future Works
➢ Q&A
Apache Lucene/Solr
LondonSearch Quality Evaluation / Context Overview
Search engineering is the production of quality
search systems.
Search quality (and in general software quality) is a
huge topic which can be described using internal
and external factors.
In the end, only external factors matter, those that
can be perceived by users and customers. But the
key for getting optimal levels of those external
factors are the internal ones.
One of the main differences between search and
software quality (especially from a correctness
perspective) is in the ok / ko judgment, which is
more “deterministic” in case of software development.
Context OverviewSearch Quality
Internal Factors
External Factors
Correctness
RobustnessExtendibility
Reusability
Efficiency
Timeliness
Modularity
Readability
Maintainability
Testability
Maintainability
Understandability
Reusability
….
Focused on
Primarily focused on
Apache Lucene/Solr
LondonSearch Quality Evaluation / Correctness
Correctness is the ability of a system to perform its
exact task, as defined by its specification.
Search domain is critical from this perspective
because correctness depends on arbitrary user
judgments.
For each internal (gray) and external (red) iteration
we need to find a way to measure the correctness.
Evaluation measures for an information retrieval
system are used to assert how well the search results
satisfied the user's query intent.
Correctness
Swimlane A: a new system Swimlane B: an existing system
Here are the requirements
Ok
V1.0 has been released
Cool!
a month later…
We have a change request.We found a bug
We need to improve our search
system, users are complaining
about junk in search results.
Ok
v0.1
…
v0.9
v1.1
v1.2
v1.3
…
v2.0
v2.0 How can we know where our system is going
between versions, in terms of correctness,
relevancy?
Apache Lucene/Solr
LondonSearch Quality Evaluation / Measures
Evaluation measures for an information retrieval
system try to formalise how well a search system
satisfies its user information needs.
Measures are generally split into two categories:
online and offline measures.
In this context we will focus on offline measures.
We will talk about something that can help a search
engineer during his ordinary day (i.e. in those phases
previously called “internal iterations”)
We will also see how the same tool can be used for
a broader usage, like contributing in the continuous
integration pipeline or even for delivering value to
functional stakeholders (i.e. external iterations).
Evaluation MeasuresEvaluation Measures
Online Measures
Offline Measures
Average Precision
Mean Reciprocal Rank
Recall
NDCG
Precision Click-through rate
F-Measure
Zero result rate
Session abandonment rate
Session success rate
….
….
We are mainly focused here, in this talk
Agenda
Apache Lucene/Solr
London
➢ Search Quality Evaluation
✓Rated Ranking Evaluator (RRE)
‣ What is it?
‣ How does it work?
‣ Domain Model
‣ Apache Maven binding
‣ RRE Server
➢ Future Works
➢ Q&A
Apache Lucene/Solr
LondonRRE / What is it?
• A set of search quality evaluation tools
• A search quality evaluation framework
• Multi (search) platform
• Written in Java
• It can be used also in non-Java projects
• Licensed under Apache 2.0
• Open to contributions
• Extremely dynamic!
RRE: What is it?
https://github.com/SeaseLtd/rated-ranking-evaluator
Apache Lucene/Solr
LondonRRE / at a glance
2____________________________________________________________________________________________________________________________________________________________________________________________________________________________
Months
2____________________________________________________________________________________________________________________________________________________________________________________________________________________________
People
10____________________________________________________________________________________________________________________________________________________________________________________________________________________________
modules
48950____________________________________________________________________________________________________________________________________________________________________________________________________________________________
lines of code
Apache Lucene/Solr
LondonRRE / ecosystem
The picture illustrates the main modules composing
the RRE ecosystem.
All modules with a dashed border are planned for a
future release.
RRE CLI has a double border because although the
rre-cli module hasn’t been developed, you can run
RRE from a command line using RRE Maven
archetype, which is part of the current release.
As you can see, the system development takes in
account two target search platforms: Apache Solr
and Elasticsearch.
The Search Platform API module provide a search
platform abstraction for plugging-in additional
search systems.
RRE Ecosystem
CORE
Plugin
Plugin
Reporting Plugin
Search
Platform
API
RequestHandler
RRE Server
RRE CLI
Plugin
Plugin
Plugin
Archetypes
Apache Lucene/Solr
LondonRRE / Domain Model
RRE Domain Model is organized into a composite /
tree-like structure where the relationships between
entities are always 1 to many.
The top level entity is a placeholder representing an
evaluation execution.
Versioned metrics are computed at query level and
then reported, using an aggregation function, at
upper levels.
The benefit of having a composite structure is clear:
we can see a metric value at different levels (e.g. a
query, all queries belonging to a query group, all
queries belonging to a topic or at corpus level)
RRE Domain Model
Evaluation
Corpus
1..*
v1.0
P@10
NDCG
AP
F-MEASURE
….
v1.1
P@10
NDCG
AP
F-MEASURE
….
v1.2
P@10
NDCG
AP
F-MEASURE
….
v1.n
P@10
NDCG
AP
F-MEASURE
….
Topic
Query Group
Query
1..*
1..*
1..*
…
Top level domain entity
Test dataset / collection
Information need
Query variants
Queries
Apache Lucene/Solr
LondonRRE / Domain Model, an example
The domain model provides all the abstractions
needed for articulating a complex judgment sets.
If, from one side, it is able to capture a complicated
and composite ratings model, on the other side
there are some cases where such complexity is not
needed.
Variants (i.e. queries which belong to the same
group) could be automatically generated starting
from one query.
This query could be manually entered, retrieved
from the query logs or generated in some other way.
Domain Model
Evaluation
Corpus
1..*
Topic
Query Group
Query
1..*
1..*
1..*
“Ranking Evaluation Report - created on …
bfa_2018_15_5.json
Coloured Mini Bar Fridges
Black Fridges
• Black mini fridges
• black mini fridge
• black minibar fridge
• mini bar fridge black
Apache Lucene/Solr
LondonRRE / Process overview
Runtime Container
RRE Core
For each ratings set
For each dataset
For each topic
For each query group
For each query
Starts the search
platform
Stops the search
platform
Creates & configure the index
Indexes data
For each version Executes query
Computes metric
2
3
4
5
6
7
8
9 12
13
1
11
outputs the evaluation data
14
uses the evaluation data
15
Apache Lucene/Solr
LondonRRE / Output
The RRE Core itself is a library, so it outputs its
result as a Plain Java object that must be
programmatically used.
However when wrapped within a runtime container,
like the RRE Maven Plugin, the Evaluation object is
marshalled in JSON format.
Being interoperable, the JSON format can be used by
some other component for producing a different kind
of output.
An example of such usage is the RRE Apache
Maven Reporting Plugin which can
• output a spreadsheet
• send the evaluation data to a running RRE Server
Evaluation output
Apache Lucene/Solr
LondonRRE / Available Metrics
These are the RRE built-in metrics which can be
used out of the box.
The most part of them are computed at query level
and then aggregated at upper levels.
However, compound metrics (e.g. MAP, or GMAP)
are not explicitly declared or defined, because the
computation doesn’t happen at query level. The result
of the aggregation executed on the upper levels will
automatically produce these metric.
For example, the Average Precision computed for
Q1, Q2, Q3, Qn becomes the Mean Average
Precision at Query Group or Topic levels.
Available MetricsPrecision
Recall
Precision at 1 (P@1)
Precision at 2 (P@2)
Precision at 3 (P@3)
Precision at 10 (P@10)
Average Precision (AP)
Reciprocal Rank
Mean Reciprocal Rank
Mean Average Precision (MAP)
Normalised Discounted Cumulative Gain
Apache Lucene/Solr
LondonRRE / What we need to provide
▪ Dataset / collection which consists of
representative data in your domain.
▪ In general, we could say it should have a
reasonable size.
▪ For those functional scenarios where
we are managing different entity kinds,
RRE allows to provide more than one
dataset.
▪ Although formally a dataset is provided
in JSON files, the actual content depends
on the target search platform.
▪ It
CONFIGURATION SETS
PROCESSINGRATINGS
CORPUS
▪ a structured set of judgements (i.e. relevant documents for
a given query)
▪ It’s not a plain list because it is structured on top of the
composite RRE domain model
▪ Here we can define all things that compose the RRE domain
model: topics, query groups, and queries.
▪ At query group level we can list all documents which are
relevant to all queries belonging to that group
▪ For each relevant document we can express a gain, which
indicates how much a document is relevant.
▪ In the current implementation we are using a three-level
judgement, but this is one thing that most probably will be
generalised in future versions:
▪ 1 => marginally relevant
▪ 2 => relevant
▪ 3 => very relevant
▪ configuration instances at a
given time. This concept is often
captured by introducing “versions”
▪ For each version of our system,
we assume there’s a different
configuration set.
▪ The actual content of each
configuration set depends on the
target platform
▪ For example, if we are using Solr,
each version would contain one or
more core definitions.
Apache Lucene/Solr
LondonRRE / What we need to provide: corpora
An evaluation execution can involve more than one
dataset targeting a given search platform.
Within RRE, corpus, dataset, collection are
synonyms.
Each corpus must be located under the corpora
configuration folder. It is then referenced in one or
more ratings file.
The internal format depends on the target search
platform.
Solr datasets are provided using a plain JSON
format (no JSON Update Commands!).
Elasticsearch is instead using the pseudo-json bulk
format.
Corpora
Apache Lucene/Solr
LondonRRE / What we need to provide: configuration sets
RRE encourages a configuration immutability
approach.
Even for internal iterations, each time we make a
relevant change to the current configuration, it’s
better to clone it and move forward with a new
version.
In this way we’ll end up having the historical
progression of our system, and RRE will be able to
make comparisons.
The actual content of the configuration sets actually
depends on the target search platform.
Configuration Sets
Apache Lucene/Solr
LondonRRE / What we need to provide: ratings
Ratings files (i.e. judgments sets) must be located
under the “ratings” configured folder.
There must be at least one ratings file (otherwise no
evaluation happens)
You can define here all the compounding blocks of
the RRE domain model: reference dataset, topics,
query groups, queries and judgements.
Judgments, the most fundamental part of this input,
consist of a list of all relevant documents for the
owning query group, with a corresponding “gain”
which is the actual relevancy judgment.
If a document is in this list, that means it is relevant
for the current query.
Ratings
Apache Lucene/Solr
LondonRRE / Where we need to provide
At configuration level, RRE needs to know where the
following folders are located:
• configuration sets
• corpora
• ratings
• query templates
Although the RRE core itself requires these
information, when it’s wrapped within a container
defaults values are provided.
For example, the Maven Plugin assumes the $
{project.dir}/src/etc folder as the parent of all folders
above.
Folders
Apache Lucene/Solr
LondonRRE / Query templates
For each query (or for each query group) it’s
possible to define a query template, which is a kind
of query shape containing one or more
placeholders.
Then, in the ratings file you can reference one of
those defined templates and you can provide a value
for each placeholder.
Templates have been introduced in order to:
• allow a common query management between
search platforms
• define complex queries
• define runtime parameters that cannot be
statically determined (e.g. filters)
Query templates
only_q.json
filter_by_language.json
Apache Lucene/Solr
LondonRRE / Maven (Solr | Elasticsearch) Plugin
The RRE Apache Maven Plugin is a runtime
container which is able to execute the evaluation
process within a (Maven) build cycle.
As you can see from the picture on the left, all things
described in the previous slides can be configured.
You don’t need to provide all listed parameters, this is
just a demonstration example. They have a good
defaults that can work in many cases.
The plugin can be attached to whatever phase,
although usually it is executed in the test,
integration-test or install phase.
In this way, if you have some custom code (e.g an
UpdateRequestProcessor), it will be correctly put in
the runtime classpath.
Maven Plugin
Apache Lucene/Solr
LondonRRE / Maven Reporting Plugin
The RRE Maven Plugin produces its output in JSON
format, which is interoperable but not so human-
readable.
The RRE Maven Reporting Plugin can be used for
transforming such output in different ways.
The plugin is configured within the pom.xml following
the standard procedures.
The output formats can be configured. Allowed
values, at time of writing, are:
• rre-server: sends the evaluation data to a running
RRE server instance
• spreadsheet: produces an xls files
Reporting Plugin
Apache Lucene/Solr
LondonRRE / Maven (Solr | Elasticsearch) Archetype
Very useful if
• you’re starting from scratch
• you don’t use Java as main programming
language.
The RRE Maven archetype generates a Maven
project skeleton with all required folders and
configuration. In each folder there’s a README and a
sample content.
The skeleton can be used as a basis for your Java
project.
The skeleton can be used as it is, just for running
the quality evaluation (and in this case your main
project could be somewhere else)
Maven Archetype
> mvn archetype:generate …
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] ………
[INFO] BUILD SUCCESS
Apache Lucene/Solr
LondonRRE / Output, the “spreadsheet” format
After the build cycle, a rre-report.xls is generated
under the target/rre folder.
Spreadsheet format
Apache Lucene/Solr
LondonRRE / Output, RRE Server (1/2)
The RRE console is a simple SpringBoot application
which starts a web server.
It provides real-time information about evaluation
results.
Each time a build happens, the RRE reporting plugin
sends the evaluation result to a RESTFul endpoint
provided by RRE Server.
The web console is an AngularJS app which gets
refreshed with that incoming data.
Useful during the development / tuning phase
iterations (as you don’t have to open and open again
an excel file)
RRE Server
Apache Lucene/Solr
LondonRRE / Output, RRE Server (2/2)
The evaluation data, at query / version level, collects the top n search results.
In the web console, under each query, there’s a little arrow which allows to open / hide the section which contains those results.
In this way you can get immediately the meaning of each metric and its values between different versions.
In the example above, you can immediately see why there’s a loss of precision (first metric) between v1.0, v1.1, which got fixed in v1.2
Agenda
Apache Lucene/Solr
London
➢ Search Quality Evaluation
➢ Rated Ranking Evaluator
✓ Future Works
➢ Q&A
Apache Lucene/Solr
LondonFuture Works / Building the Input
The main input for RRE is the Ratings file, in JSON format.
Writing a comprehensive JSON to detail the ratings sets for your Search ecosystem can be expensive!
1. Explicit feedback from users judgements
2. An intuitive UI allow judges to run queries, see documents and rate them
3. Relevance label is explicitly assigned by domain experts
1. Implicit feedback from users interactions (Clicks, Sales …)
2. Log to disk / internal Solr instance for analytics
3. Estimate <q,d> relevance label based on Click Through Rate, Sales Rate
Users Interactions Logger
Judgement Collector UI
Quality
Metrics
Ratings
SetInteractions Logger
Judgements Collector

Explicit
Feedback
Implicit
Feedback
RRE
Apache Lucene/Solr
LondonFuture Works / Jenkins Plugin
RRE Maven plugin already produces the evaluation
data in a machine-readable format (JSON) which can
be consumed by another component.
The Maven RRE Report plugin or the RRE Server are
just two examples of such consumers.
RRE can be already integrated in a Jenkins CI build
cycle.
By means of a dedicated Jenkins plugin, the
evaluation data will be graphically displayed in the
Jenkins dashboard.
Jenkins Plugin
Apache Lucene/Solr
LondonFuture Works / Solr Rank Eval API
The RRE core will be used for implementing a
RequestHandler which will be able to expose a
Ranking Evaluation endpoint.
That would result in the same functionality introduced
in Elasticsearch 6.2 [1] with some differences.
• rich tree data model
• metrics framework
Here it doesn’t make so much sense to provide
comparisons between versions.
As part of the same module we will have a
SearchComponent, for evaluating a single query
interaction.
[1] https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-rank-eval.html
Rank Eval API
/rank_eval
?q=something&evaluate=true
+
RRE
RequestHandler
+
RRE
SearchComponent
Agenda
Apache Lucene/Solr
London
➢ Search Quality Evaluation
➢ Rated Ranking Evaluator
➢ Future Works
✓ Q&A
Search Quality Evaluation
a Developer Perspective
Andrea Gazzarini - Software Engineer, Sease Ltd
26th June 2018
Apache Lucene/Solr
London
Thank you!

Más contenido relacionado

La actualidad más candente

How to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectHow to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectSease
 
Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Andrea Gazzarini
 
From Academic Papers To Production : A Learning To Rank Story
From Academic Papers To Production : A Learning To Rank StoryFrom Academic Papers To Production : A Learning To Rank Story
From Academic Papers To Production : A Learning To Rank StoryAlessandro Benedetti
 
How the Lucene More Like This Works
How the Lucene More Like This WorksHow the Lucene More Like This Works
How the Lucene More Like This WorksSease
 
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationAlessandro Benedetti
 
Advanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAdvanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAlessandro Benedetti
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrSease
 
Entity Search on Virtual Documents Created with Graph Embeddings
Entity Search on Virtual Documents Created with Graph EmbeddingsEntity Search on Virtual Documents Created with Graph Embeddings
Entity Search on Virtual Documents Created with Graph EmbeddingsSease
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic rankingFELIX75
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document ClassificationAlessandro Benedetti
 
Feature Extraction for Large-Scale Text Collections
Feature Extraction for Large-Scale Text CollectionsFeature Extraction for Large-Scale Text Collections
Feature Extraction for Large-Scale Text CollectionsSease
 
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...Lucidworks
 
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough data
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough dataВладимир Гулин, Mail.Ru Group, Learning to rank using clickthrough data
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough dataMail.ru Group
 
Semantic & Multilingual Strategies in Lucene/Solr
Semantic & Multilingual Strategies in Lucene/SolrSemantic & Multilingual Strategies in Lucene/Solr
Semantic & Multilingual Strategies in Lucene/SolrTrey Grainger
 
Building Search & Recommendation Engines
Building Search & Recommendation EnginesBuilding Search & Recommendation Engines
Building Search & Recommendation EnginesTrey Grainger
 
Webinar: Simpler Semantic Search with Solr
Webinar: Simpler Semantic Search with SolrWebinar: Simpler Semantic Search with Solr
Webinar: Simpler Semantic Search with SolrLucidworks
 

La actualidad más candente (16)

How to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectHow to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank Project
 
Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques
 
From Academic Papers To Production : A Learning To Rank Story
From Academic Papers To Production : A Learning To Rank StoryFrom Academic Papers To Production : A Learning To Rank Story
From Academic Papers To Production : A Learning To Rank Story
 
How the Lucene More Like This Works
How the Lucene More Like This WorksHow the Lucene More Like This Works
How the Lucene More Like This Works
 
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
 
Advanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAdvanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache Lucene
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
 
Entity Search on Virtual Documents Created with Graph Embeddings
Entity Search on Virtual Documents Created with Graph EmbeddingsEntity Search on Virtual Documents Created with Graph Embeddings
Entity Search on Virtual Documents Created with Graph Embeddings
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document Classification
 
Feature Extraction for Large-Scale Text Collections
Feature Extraction for Large-Scale Text CollectionsFeature Extraction for Large-Scale Text Collections
Feature Extraction for Large-Scale Text Collections
 
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine: Presented by T...
 
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough data
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough dataВладимир Гулин, Mail.Ru Group, Learning to rank using clickthrough data
Владимир Гулин, Mail.Ru Group, Learning to rank using clickthrough data
 
Semantic & Multilingual Strategies in Lucene/Solr
Semantic & Multilingual Strategies in Lucene/SolrSemantic & Multilingual Strategies in Lucene/Solr
Semantic & Multilingual Strategies in Lucene/Solr
 
Building Search & Recommendation Engines
Building Search & Recommendation EnginesBuilding Search & Recommendation Engines
Building Search & Recommendation Engines
 
Webinar: Simpler Semantic Search with Solr
Webinar: Simpler Semantic Search with SolrWebinar: Simpler Semantic Search with Solr
Webinar: Simpler Semantic Search with Solr
 

Similar a Search Quality Evaluation: a Developer Perspective

Search Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveSearch Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveSease
 
Search Quality Evaluation: Tools and Techniques
Search Quality Evaluation: Tools and TechniquesSearch Quality Evaluation: Tools and Techniques
Search Quality Evaluation: Tools and TechniquesAlessandro Benedetti
 
Rated Ranking Evaluator (FOSDEM 2019)
Rated Ranking Evaluator (FOSDEM 2019)Rated Ranking Evaluator (FOSDEM 2019)
Rated Ranking Evaluator (FOSDEM 2019)Andrea Gazzarini
 
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationAlessandro Benedetti
 
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachSearch Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachAlessandro Benedetti
 
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationSease
 
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...OpenSource Connections
 
Measure performance of the application using open source performance testing...
Measure performance of the  application using open source performance testing...Measure performance of the  application using open source performance testing...
Measure performance of the application using open source performance testing...BugRaptors
 
Building multi billion ( dollars, users, documents ) search engines on open ...
Building multi billion ( dollars, users, documents ) search engines  on open ...Building multi billion ( dollars, users, documents ) search engines  on open ...
Building multi billion ( dollars, users, documents ) search engines on open ...Andrei Lopatenko
 
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State University
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State UniversityLSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State University
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State Universitydhabalia
 
Performance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining ToolsPerformance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining Toolsijsrd.com
 
Sfeldman performance bb_worldemea07
Sfeldman performance bb_worldemea07Sfeldman performance bb_worldemea07
Sfeldman performance bb_worldemea07Steve Feldman
 
Preparing for Enterprise Continuous Delivery - 5 Critical Steps
Preparing for Enterprise Continuous Delivery - 5 Critical StepsPreparing for Enterprise Continuous Delivery - 5 Critical Steps
Preparing for Enterprise Continuous Delivery - 5 Critical StepsXebiaLabs
 
Web Rec Final Report
Web Rec Final ReportWeb Rec Final Report
Web Rec Final Reportweichen
 
FinalInnovationWeek-Dec12
FinalInnovationWeek-Dec12FinalInnovationWeek-Dec12
FinalInnovationWeek-Dec12Praneet Mhatre
 
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...HostedbyConfluent
 
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...Lucidworks
 
Performance tuning in ranker
Performance tuning in rankerPerformance tuning in ranker
Performance tuning in rankerEosSoftware
 

Similar a Search Quality Evaluation: a Developer Perspective (20)

Search Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveSearch Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer Perspective
 
Search Quality Evaluation: Tools and Techniques
Search Quality Evaluation: Tools and TechniquesSearch Quality Evaluation: Tools and Techniques
Search Quality Evaluation: Tools and Techniques
 
Rated Ranking Evaluator (FOSDEM 2019)
Rated Ranking Evaluator (FOSDEM 2019)Rated Ranking Evaluator (FOSDEM 2019)
Rated Ranking Evaluator (FOSDEM 2019)
 
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: An Open Source Approach for Search Quality Evaluation
 
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachSearch Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
 
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
 
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
 
Measure performance of the application using open source performance testing...
Measure performance of the  application using open source performance testing...Measure performance of the  application using open source performance testing...
Measure performance of the application using open source performance testing...
 
Building multi billion ( dollars, users, documents ) search engines on open ...
Building multi billion ( dollars, users, documents ) search engines  on open ...Building multi billion ( dollars, users, documents ) search engines  on open ...
Building multi billion ( dollars, users, documents ) search engines on open ...
 
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State University
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State UniversityLSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State University
LSP ( Logic Score Preference ) _ Rajan_Dhabalia_San Francisco State University
 
Performance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining ToolsPerformance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining Tools
 
Sfeldman performance bb_worldemea07
Sfeldman performance bb_worldemea07Sfeldman performance bb_worldemea07
Sfeldman performance bb_worldemea07
 
Preparing for Enterprise Continuous Delivery - 5 Critical Steps
Preparing for Enterprise Continuous Delivery - 5 Critical StepsPreparing for Enterprise Continuous Delivery - 5 Critical Steps
Preparing for Enterprise Continuous Delivery - 5 Critical Steps
 
Web Rec Final Report
Web Rec Final ReportWeb Rec Final Report
Web Rec Final Report
 
FinalInnovationWeek-Dec12
FinalInnovationWeek-Dec12FinalInnovationWeek-Dec12
FinalInnovationWeek-Dec12
 
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
 
OpenML Tutorial ECMLPKDD 2015
OpenML Tutorial ECMLPKDD 2015OpenML Tutorial ECMLPKDD 2015
OpenML Tutorial ECMLPKDD 2015
 
Innovation week dec12
Innovation week dec12Innovation week dec12
Innovation week dec12
 
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
 
Performance tuning in ranker
Performance tuning in rankerPerformance tuning in ranker
Performance tuning in ranker
 

Último

Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 

Último (20)

Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 

Search Quality Evaluation: a Developer Perspective

  • 1. Search Quality Evaluation a Developer Perspective Andrea Gazzarini - Software Engineer, Sease Ltd 26th June 2018 Apache Lucene/Solr London
  • 2. Apache Lucene/Solr LondonWho I am ▪ SOFTWARE ENGINEER SINCE 1999 ▪ “HERMIT” SOFTWARE ENGINEER SINCE 2010 ▪ JAVA PASSIONATE ▪ INFORMATION RETRIEVAL PASSIONATE ▪ APACHE SOLR / LUCENE ENTHUSIAST ▪ APACHE QPID (PAST) COMMITTER ▪ HUSBAND & FATHER ▪ BASS PLAYER! Andrea Gazzarini VIGNANELLO
  • 3. Apache Lucene/Solr LondonSease Search Services ● Open Source Enthusiasts ● Apache Lucene/Solr experts ! Community Contributors ● Active Researchers ● Hot Trends : Learning To Rank, Document Similarity, Measuring Search Quality, Relevancy Tuning
  • 4. Agenda Apache Lucene/Solr London ✓ Search Quality Evaluation ‣ Context overview ‣ Correctness ‣ Evaluation Measures ➢ Rated Ranking Evaluator (RRE) ➢ Future Works ➢ Q&A
  • 5. Apache Lucene/Solr LondonSearch Quality Evaluation / Context Overview Search engineering is the production of quality search systems. Search quality (and in general software quality) is a huge topic which can be described using internal and external factors. In the end, only external factors matter, those that can be perceived by users and customers. But the key for getting optimal levels of those external factors are the internal ones. One of the main differences between search and software quality (especially from a correctness perspective) is in the ok / ko judgment, which is more “deterministic” in case of software development. Context OverviewSearch Quality Internal Factors External Factors Correctness RobustnessExtendibility Reusability Efficiency Timeliness Modularity Readability Maintainability Testability Maintainability Understandability Reusability …. Focused on Primarily focused on
  • 6. Apache Lucene/Solr LondonSearch Quality Evaluation / Correctness Correctness is the ability of a system to perform its exact task, as defined by its specification. Search domain is critical from this perspective because correctness depends on arbitrary user judgments. For each internal (gray) and external (red) iteration we need to find a way to measure the correctness. Evaluation measures for an information retrieval system are used to assert how well the search results satisfied the user's query intent. Correctness Swimlane A: a new system Swimlane B: an existing system Here are the requirements Ok V1.0 has been released Cool! a month later… We have a change request.We found a bug We need to improve our search system, users are complaining about junk in search results. Ok v0.1 … v0.9 v1.1 v1.2 v1.3 … v2.0 v2.0 How can we know where our system is going between versions, in terms of correctness, relevancy?
  • 7. Apache Lucene/Solr LondonSearch Quality Evaluation / Measures Evaluation measures for an information retrieval system try to formalise how well a search system satisfies its user information needs. Measures are generally split into two categories: online and offline measures. In this context we will focus on offline measures. We will talk about something that can help a search engineer during his ordinary day (i.e. in those phases previously called “internal iterations”) We will also see how the same tool can be used for a broader usage, like contributing in the continuous integration pipeline or even for delivering value to functional stakeholders (i.e. external iterations). Evaluation MeasuresEvaluation Measures Online Measures Offline Measures Average Precision Mean Reciprocal Rank Recall NDCG Precision Click-through rate F-Measure Zero result rate Session abandonment rate Session success rate …. …. We are mainly focused here, in this talk
  • 8. Agenda Apache Lucene/Solr London ➢ Search Quality Evaluation ✓Rated Ranking Evaluator (RRE) ‣ What is it? ‣ How does it work? ‣ Domain Model ‣ Apache Maven binding ‣ RRE Server ➢ Future Works ➢ Q&A
  • 9. Apache Lucene/Solr LondonRRE / What is it? • A set of search quality evaluation tools • A search quality evaluation framework • Multi (search) platform • Written in Java • It can be used also in non-Java projects • Licensed under Apache 2.0 • Open to contributions • Extremely dynamic! RRE: What is it? https://github.com/SeaseLtd/rated-ranking-evaluator
  • 10. Apache Lucene/Solr LondonRRE / at a glance 2____________________________________________________________________________________________________________________________________________________________________________________________________________________________ Months 2____________________________________________________________________________________________________________________________________________________________________________________________________________________________ People 10____________________________________________________________________________________________________________________________________________________________________________________________________________________________ modules 48950____________________________________________________________________________________________________________________________________________________________________________________________________________________________ lines of code
  • 11. Apache Lucene/Solr LondonRRE / ecosystem The picture illustrates the main modules composing the RRE ecosystem. All modules with a dashed border are planned for a future release. RRE CLI has a double border because although the rre-cli module hasn’t been developed, you can run RRE from a command line using RRE Maven archetype, which is part of the current release. As you can see, the system development takes in account two target search platforms: Apache Solr and Elasticsearch. The Search Platform API module provide a search platform abstraction for plugging-in additional search systems. RRE Ecosystem CORE Plugin Plugin Reporting Plugin Search Platform API RequestHandler RRE Server RRE CLI Plugin Plugin Plugin Archetypes
  • 12. Apache Lucene/Solr LondonRRE / Domain Model RRE Domain Model is organized into a composite / tree-like structure where the relationships between entities are always 1 to many. The top level entity is a placeholder representing an evaluation execution. Versioned metrics are computed at query level and then reported, using an aggregation function, at upper levels. The benefit of having a composite structure is clear: we can see a metric value at different levels (e.g. a query, all queries belonging to a query group, all queries belonging to a topic or at corpus level) RRE Domain Model Evaluation Corpus 1..* v1.0 P@10 NDCG AP F-MEASURE …. v1.1 P@10 NDCG AP F-MEASURE …. v1.2 P@10 NDCG AP F-MEASURE …. v1.n P@10 NDCG AP F-MEASURE …. Topic Query Group Query 1..* 1..* 1..* … Top level domain entity Test dataset / collection Information need Query variants Queries
  • 13. Apache Lucene/Solr LondonRRE / Domain Model, an example The domain model provides all the abstractions needed for articulating a complex judgment sets. If, from one side, it is able to capture a complicated and composite ratings model, on the other side there are some cases where such complexity is not needed. Variants (i.e. queries which belong to the same group) could be automatically generated starting from one query. This query could be manually entered, retrieved from the query logs or generated in some other way. Domain Model Evaluation Corpus 1..* Topic Query Group Query 1..* 1..* 1..* “Ranking Evaluation Report - created on … bfa_2018_15_5.json Coloured Mini Bar Fridges Black Fridges • Black mini fridges • black mini fridge • black minibar fridge • mini bar fridge black
  • 14. Apache Lucene/Solr LondonRRE / Process overview Runtime Container RRE Core For each ratings set For each dataset For each topic For each query group For each query Starts the search platform Stops the search platform Creates & configure the index Indexes data For each version Executes query Computes metric 2 3 4 5 6 7 8 9 12 13 1 11 outputs the evaluation data 14 uses the evaluation data 15
  • 15. Apache Lucene/Solr LondonRRE / Output The RRE Core itself is a library, so it outputs its result as a Plain Java object that must be programmatically used. However when wrapped within a runtime container, like the RRE Maven Plugin, the Evaluation object is marshalled in JSON format. Being interoperable, the JSON format can be used by some other component for producing a different kind of output. An example of such usage is the RRE Apache Maven Reporting Plugin which can • output a spreadsheet • send the evaluation data to a running RRE Server Evaluation output
  • 16. Apache Lucene/Solr LondonRRE / Available Metrics These are the RRE built-in metrics which can be used out of the box. The most part of them are computed at query level and then aggregated at upper levels. However, compound metrics (e.g. MAP, or GMAP) are not explicitly declared or defined, because the computation doesn’t happen at query level. The result of the aggregation executed on the upper levels will automatically produce these metric. For example, the Average Precision computed for Q1, Q2, Q3, Qn becomes the Mean Average Precision at Query Group or Topic levels. Available MetricsPrecision Recall Precision at 1 (P@1) Precision at 2 (P@2) Precision at 3 (P@3) Precision at 10 (P@10) Average Precision (AP) Reciprocal Rank Mean Reciprocal Rank Mean Average Precision (MAP) Normalised Discounted Cumulative Gain
  • 17. Apache Lucene/Solr LondonRRE / What we need to provide ▪ Dataset / collection which consists of representative data in your domain. ▪ In general, we could say it should have a reasonable size. ▪ For those functional scenarios where we are managing different entity kinds, RRE allows to provide more than one dataset. ▪ Although formally a dataset is provided in JSON files, the actual content depends on the target search platform. ▪ It CONFIGURATION SETS PROCESSINGRATINGS CORPUS ▪ a structured set of judgements (i.e. relevant documents for a given query) ▪ It’s not a plain list because it is structured on top of the composite RRE domain model ▪ Here we can define all things that compose the RRE domain model: topics, query groups, and queries. ▪ At query group level we can list all documents which are relevant to all queries belonging to that group ▪ For each relevant document we can express a gain, which indicates how much a document is relevant. ▪ In the current implementation we are using a three-level judgement, but this is one thing that most probably will be generalised in future versions: ▪ 1 => marginally relevant ▪ 2 => relevant ▪ 3 => very relevant ▪ configuration instances at a given time. This concept is often captured by introducing “versions” ▪ For each version of our system, we assume there’s a different configuration set. ▪ The actual content of each configuration set depends on the target platform ▪ For example, if we are using Solr, each version would contain one or more core definitions.
  • 18. Apache Lucene/Solr LondonRRE / What we need to provide: corpora An evaluation execution can involve more than one dataset targeting a given search platform. Within RRE, corpus, dataset, collection are synonyms. Each corpus must be located under the corpora configuration folder. It is then referenced in one or more ratings file. The internal format depends on the target search platform. Solr datasets are provided using a plain JSON format (no JSON Update Commands!). Elasticsearch is instead using the pseudo-json bulk format. Corpora
  • 19. Apache Lucene/Solr LondonRRE / What we need to provide: configuration sets RRE encourages a configuration immutability approach. Even for internal iterations, each time we make a relevant change to the current configuration, it’s better to clone it and move forward with a new version. In this way we’ll end up having the historical progression of our system, and RRE will be able to make comparisons. The actual content of the configuration sets actually depends on the target search platform. Configuration Sets
  • 20. Apache Lucene/Solr LondonRRE / What we need to provide: ratings Ratings files (i.e. judgments sets) must be located under the “ratings” configured folder. There must be at least one ratings file (otherwise no evaluation happens) You can define here all the compounding blocks of the RRE domain model: reference dataset, topics, query groups, queries and judgements. Judgments, the most fundamental part of this input, consist of a list of all relevant documents for the owning query group, with a corresponding “gain” which is the actual relevancy judgment. If a document is in this list, that means it is relevant for the current query. Ratings
  • 21. Apache Lucene/Solr LondonRRE / Where we need to provide At configuration level, RRE needs to know where the following folders are located: • configuration sets • corpora • ratings • query templates Although the RRE core itself requires these information, when it’s wrapped within a container defaults values are provided. For example, the Maven Plugin assumes the $ {project.dir}/src/etc folder as the parent of all folders above. Folders
  • 22. Apache Lucene/Solr LondonRRE / Query templates For each query (or for each query group) it’s possible to define a query template, which is a kind of query shape containing one or more placeholders. Then, in the ratings file you can reference one of those defined templates and you can provide a value for each placeholder. Templates have been introduced in order to: • allow a common query management between search platforms • define complex queries • define runtime parameters that cannot be statically determined (e.g. filters) Query templates only_q.json filter_by_language.json
  • 23. Apache Lucene/Solr LondonRRE / Maven (Solr | Elasticsearch) Plugin The RRE Apache Maven Plugin is a runtime container which is able to execute the evaluation process within a (Maven) build cycle. As you can see from the picture on the left, all things described in the previous slides can be configured. You don’t need to provide all listed parameters, this is just a demonstration example. They have a good defaults that can work in many cases. The plugin can be attached to whatever phase, although usually it is executed in the test, integration-test or install phase. In this way, if you have some custom code (e.g an UpdateRequestProcessor), it will be correctly put in the runtime classpath. Maven Plugin
  • 24. Apache Lucene/Solr LondonRRE / Maven Reporting Plugin The RRE Maven Plugin produces its output in JSON format, which is interoperable but not so human- readable. The RRE Maven Reporting Plugin can be used for transforming such output in different ways. The plugin is configured within the pom.xml following the standard procedures. The output formats can be configured. Allowed values, at time of writing, are: • rre-server: sends the evaluation data to a running RRE server instance • spreadsheet: produces an xls files Reporting Plugin
  • 25. Apache Lucene/Solr LondonRRE / Maven (Solr | Elasticsearch) Archetype Very useful if • you’re starting from scratch • you don’t use Java as main programming language. The RRE Maven archetype generates a Maven project skeleton with all required folders and configuration. In each folder there’s a README and a sample content. The skeleton can be used as a basis for your Java project. The skeleton can be used as it is, just for running the quality evaluation (and in this case your main project could be somewhere else) Maven Archetype > mvn archetype:generate … [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] ……… [INFO] BUILD SUCCESS
  • 26. Apache Lucene/Solr LondonRRE / Output, the “spreadsheet” format After the build cycle, a rre-report.xls is generated under the target/rre folder. Spreadsheet format
  • 27. Apache Lucene/Solr LondonRRE / Output, RRE Server (1/2) The RRE console is a simple SpringBoot application which starts a web server. It provides real-time information about evaluation results. Each time a build happens, the RRE reporting plugin sends the evaluation result to a RESTFul endpoint provided by RRE Server. The web console is an AngularJS app which gets refreshed with that incoming data. Useful during the development / tuning phase iterations (as you don’t have to open and open again an excel file) RRE Server
  • 28. Apache Lucene/Solr LondonRRE / Output, RRE Server (2/2) The evaluation data, at query / version level, collects the top n search results. In the web console, under each query, there’s a little arrow which allows to open / hide the section which contains those results. In this way you can get immediately the meaning of each metric and its values between different versions. In the example above, you can immediately see why there’s a loss of precision (first metric) between v1.0, v1.1, which got fixed in v1.2
  • 29. Agenda Apache Lucene/Solr London ➢ Search Quality Evaluation ➢ Rated Ranking Evaluator ✓ Future Works ➢ Q&A
  • 30. Apache Lucene/Solr LondonFuture Works / Building the Input The main input for RRE is the Ratings file, in JSON format. Writing a comprehensive JSON to detail the ratings sets for your Search ecosystem can be expensive! 1. Explicit feedback from users judgements 2. An intuitive UI allow judges to run queries, see documents and rate them 3. Relevance label is explicitly assigned by domain experts 1. Implicit feedback from users interactions (Clicks, Sales …) 2. Log to disk / internal Solr instance for analytics 3. Estimate <q,d> relevance label based on Click Through Rate, Sales Rate Users Interactions Logger Judgement Collector UI Quality Metrics Ratings SetInteractions Logger Judgements Collector
 Explicit Feedback Implicit Feedback RRE
  • 31. Apache Lucene/Solr LondonFuture Works / Jenkins Plugin RRE Maven plugin already produces the evaluation data in a machine-readable format (JSON) which can be consumed by another component. The Maven RRE Report plugin or the RRE Server are just two examples of such consumers. RRE can be already integrated in a Jenkins CI build cycle. By means of a dedicated Jenkins plugin, the evaluation data will be graphically displayed in the Jenkins dashboard. Jenkins Plugin
  • 32. Apache Lucene/Solr LondonFuture Works / Solr Rank Eval API The RRE core will be used for implementing a RequestHandler which will be able to expose a Ranking Evaluation endpoint. That would result in the same functionality introduced in Elasticsearch 6.2 [1] with some differences. • rich tree data model • metrics framework Here it doesn’t make so much sense to provide comparisons between versions. As part of the same module we will have a SearchComponent, for evaluating a single query interaction. [1] https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-rank-eval.html Rank Eval API /rank_eval ?q=something&evaluate=true + RRE RequestHandler + RRE SearchComponent
  • 33. Agenda Apache Lucene/Solr London ➢ Search Quality Evaluation ➢ Rated Ranking Evaluator ➢ Future Works ✓ Q&A
  • 34. Search Quality Evaluation a Developer Perspective Andrea Gazzarini - Software Engineer, Sease Ltd 26th June 2018 Apache Lucene/Solr London Thank you!