SlideShare uma empresa Scribd logo
1 de 40
Baixar para ler offline
Query relaxation
A rewriting technique between search and recommendations
René Kriegler, @renekrie
Haystack - The Search Relevance
Conference
24 April 2019
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
About me
More than 10 years experience as a freelance search consultant, often in a role
for OpenSource Connections
Focus:
- Search relevance optimisation
- E-commerce search
- Solr
- Coaching teams to establish search within their organisation
Organiser of MICES - Mix-Camp E-commerce Search (Berlin, 19 June,
mices.co, right after Berlin Buzzwords)
Maintainer of Querqy (OSS query rewriting library - github.com/renekrie/querqy)
2
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
No results
3
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
No results - strategies
Apply synonyms and hyponyms (laptop = notebook; shoes => trainers)
Spelling correction (Did you mean ...? / We’ve searched for ...)
Also search in low-quality data fields
Loosen boolean constraints (AND -> OR, mm<100%)
Apply hypernyms (boots => shoes)
Use more distant semantic relation (beard balm => trimmer)
Show more general recommendations (related to user’s shopping history,
popular items)
4
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
No results - strategies
Apply synonyms and hyponyms
Spelling correction
Also search in low-quality data fields
Loosen boolean constraints
Apply hypernyms
Use more distant semantic relation
Show more general recommendations
5
Explainable?
(in e-commerce search)
Don’t want to tell
mm: no; AND/OR: yes, but bad UX
Don’t need to tell
Can be hard
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
No results - Query relaxation
6
Explainable!
(& conversational!)
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation
Which query term should be removed?
7
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation - intuition
8
iphone 9 => iphone 9
(*) iphone 9 => iphone 9
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation - intuition
9
iphone 9 plus => iphone 9 plus
(?) iphone 9 plus => iphone 9 plus
(?) iphone 9 plus => iphone 9 plus
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation - intuition
10
black boots => black boots
(*) black boots => black boots
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation - intuition
11
purple boots => purple boots
(?) purple boots => purple boots
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation - intuition
12
(?) usb charger 12v => usb charger 12v
(?) usb charger 12v => usb charger 12v
(?) usb charger 12v => usb charger 12v
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query intent & information need
Apply synonyms and hyponyms
Spelling correction
Also search in low-quality data fields
Loosen boolean constraints
Apply hypernyms
Use more distant semantic relation
Show more general recommendations
13
Trying to match original information
need
Remotely related to user intent
Query relaxation
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation
14
“A popular approach to cope with empty-answers is query relaxation, which attempts to reformulate the
original query into a new query, by removing or relaxing conditions, so that the result of the new query
is likely to contain the items of interest for that user.” (Mottin et al., 2013)
“We present a method which we call relaxation for expanding deductive database and logic
programming queries. The set of answers obtained with the relaxation method includes both answers
deduced traditionally and answers related in some way with the original query. The relaxation method
expands the scope query by relaxing the constraints implicit in the query.” (Gaasterland et al., 1992)
“An extended query-document matching system is described in this study that relaxes the stringent
requirements of the conventional Boolean retrieval operations.” (Salton et al., 1983)
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Query relaxation
15
=> How can we find the best query term to be removed from the query so that
“... the result of the new query is likely to contain the items of interest for that user”
“... answers [are] related in some way with the original query” ?
=> How can we test, compare and optimise solutions?
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Online testing
16
Click-through-rate / hit rate
Exit rate / time spent on site
=> Do we manage to keep the user interacting with our site?
=> similar to recommendations / exploratory search
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Finding the term to be dropped: data sets
17
Data sets for training and evaluation
Find pairs:
- a long query having 0 results
- a corresponding relaxed query having results
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Finding the term to be dropped: data sets
18
FREQ: Query frequencies
- Have we observed the original and the relaxed query before? (We want to
make sure that we produce a meaningful query.)
COOC: Query cooccurrences per session
- Have the original and rewritten query occurred together in a session?
=> Can we find the original/rewritten query pair in tracking data? How often?
(more often is better)
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
0 - Drop random term (baseline)
19
Remove a random term from the query
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
1 - Drop shortest term
20
Remove the shortest term from the query
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
2 - Drop shortest non-alphabetical term
21
Remove the shortest term that doesn’t contain any alphabetical character
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
3 - Combined 1 and 2
22
Remove the shortest term that doesn’t contain any alphabetical character, fall
back to removing shortest term if all terms have >=1 alphabetical character
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
4/5 - Drop most/least frequent term
23
Remove the term with the highest/lowest index frequency
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
6/7 - Drop term with highest/lowest entropy
24
Remove the term with the highest/lowest entropy across navigational categories
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
8 - Keep most similar query (Word2vec)
25
Use the rewritten query that is most similar to the original query based on
Word2vec embeddings [as mentioned in D.Tunkelang, Query relaxation,
https://bit.ly/2ItxF3Z]
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Word2vec (CBOW)
26
w (t-2)
pepe jeans
w(t)
projection
Input
Output
slim cut
w (t-1) w (t+1) w (t+2)
london
london
Sequence of words
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
8 - Keep most similar query (Word2vec)
27
Use the rewritten query that is most similar to the original query based on
Word2vec embeddings
Train Word2Vec embeddings
- word = query term, window = query
- 300 dimensions
Use sum of word(=term) vectors to represent the queries (original/rewritten)
Calculate cosine similarity between original query and each rewritten query
Use rewritten query that is most similar to the original query
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
8 - Keep most similar query (Word2vec)
28
Use the rewritten query that is most similar to the original query based on
Word2vec embeddings
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
9 - Keep most similar query (Query2vec)
29
Use the rewritten query that is most similar to the original query based on query
embeddings
[Grbovic et al., Scalable Semantic Matching of Queries to Ads in Sponsored Search Advertising. SIGIR
2016]
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
‘Query2vec’ (CBOW)
30
q (t-2)
smartphone smartphone 64g
q (t)
projection
Input
Output
iphone iphone 64g
q (t-1) q (t+1) q (t+2)
galaxy 64g
galaxy 64g
Queries in a session
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
9 - Keep most similar query (Query2vec)
31
Use the rewritten query that is most similar to the original query based on Query
embeddings
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
10 - MNN with Word2vec input
32
Predict the term to be dropped using a multi-layer neural network (MNN) with
Word2vec embeddings as input.
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
10 - MNN with Word2vec input
33
0: 0.01
1:-0.94
...
300: 0.18
0: 0.63
1: 0.56
...
300: 0.04
0:-0.59
1: 0.02
...
300: 0.77
0: 0.00
1: 0.00
...
300: 0.00
0: 0.00
1: 0.00
...
300: 0.00
0: 0.00
1: 0.00
...
300: 0.00
0: 0.00
1: 0.00
...
300: 0.00
0: 0.00
1: 0.00
...
300: 0.00
nike boots 11
0: 0 0: 1 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0
2 hidden layers
Input
Output
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
10 - MNN with Word2vec input
34
Predict the term to be dropped using a multi-layer neural network (MNN) with
Word2vec embeddings as input
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
11 - MNN / Word2vec plus wordshape
35
Predict the term to be dropped using a multi-layer neural network (MNN) with
Word2vec embeddings and wordshape features as input.
Add additional dimensions to the input vector:
- Word length
- Number of digits
- Does the word have an ‘e’ in the penultimate or ultimate position?
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
11 - MNN / Word2vec plus wordshape
36
...
301: 4.00
302: 0.00
303: 1.00
...
301: 5.00
302: 0.00
303: 0.00
...
301: 2.00
302: 2.00
303: 0.00
...
301: 0.00
302: 0.00
303: 0.00
...
301: 0.00
302: 0.00
303: 0.00
...
301: 0.00
302: 0.00
303: 0.00
...
301: 0.00
302: 0.00
303: 0.00
...
301: 0.00
302: 0.00
303: 0.00
nike boots 11
0: 0 0: 1 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0
2 hidden layers
Input
Output
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
11 - MNN / Word2vec plus wordshape
37
Predict the term to be dropped using a multi-layer neural network (MNN) with
Word2vec embeddings and wordshape features as input.
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
11/12 - MNN / Word2vec plus term stats
38
Predict the term to be dropped using a multi-layer neural network (MNN) with
Word2vec embeddings and per-field DF or index frequency.
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Conclusion
39
Query relaxation:
- best understood as a query recommendation
- information need not necessarily matched but relaxed query still related to
user intent
- can be communicated nicely to the user (‘conversational’)
Best approach to find term to be dropped:
- Multi-layer neural network with Word2Vec plus wordshape features as
inputs. It can be extended to incorporate further features and optimisation
targets.
Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie)
Thank you!
http://www.rene-kriegler.com
@renekrie
40

Mais conteúdo relacionado

Mais procurados

Apriori and Eclat algorithm in Association Rule Mining
Apriori and Eclat algorithm in Association Rule MiningApriori and Eclat algorithm in Association Rule Mining
Apriori and Eclat algorithm in Association Rule Mining
Wan Aezwani Wab
 

Mais procurados (20)

Community detection algorithms
Community detection algorithmsCommunity detection algorithms
Community detection algorithms
 
R Programming: Importing Data In R
R Programming: Importing Data In RR Programming: Importing Data In R
R Programming: Importing Data In R
 
Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier
 
Gradient Boosted trees
Gradient Boosted treesGradient Boosted trees
Gradient Boosted trees
 
CSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptxCSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptx
 
Linear regression
Linear regression Linear regression
Linear regression
 
Density Based Clustering
Density Based ClusteringDensity Based Clustering
Density Based Clustering
 
K means clustering
K means clusteringK means clustering
K means clustering
 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes Classifier
 
150807 Fast R-CNN
150807 Fast R-CNN150807 Fast R-CNN
150807 Fast R-CNN
 
Optimizing Cypher Queries in Neo4j
Optimizing Cypher Queries in Neo4jOptimizing Cypher Queries in Neo4j
Optimizing Cypher Queries in Neo4j
 
K means and dbscan
K means and dbscanK means and dbscan
K means and dbscan
 
Design cycles of pattern recognition
Design cycles of pattern recognitionDesign cycles of pattern recognition
Design cycles of pattern recognition
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
 
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
GRU4Rec v2 - Recurrent Neural Networks with Top-k Gains for Session-based Rec...
 
Birch Algorithm With Solved Example
Birch Algorithm With Solved ExampleBirch Algorithm With Solved Example
Birch Algorithm With Solved Example
 
Decision tree learning
Decision tree learningDecision tree learning
Decision tree learning
 
Convolutional neural neworks
Convolutional neural neworksConvolutional neural neworks
Convolutional neural neworks
 
Deep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningDeep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter Tuning
 
Apriori and Eclat algorithm in Association Rule Mining
Apriori and Eclat algorithm in Association Rule MiningApriori and Eclat algorithm in Association Rule Mining
Apriori and Eclat algorithm in Association Rule Mining
 

Semelhante a Query relaxation - A rewriting technique between search and recommendations

Presentation by vikas dubey
Presentation by vikas dubeyPresentation by vikas dubey
Presentation by vikas dubey
PMI_IREP_TP
 
Nowadays the Reliance on electrical energy became very curcial. th.docx
Nowadays the Reliance on electrical energy became very curcial. th.docxNowadays the Reliance on electrical energy became very curcial. th.docx
Nowadays the Reliance on electrical energy became very curcial. th.docx
vannagoforth
 
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docxRunning Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
toltonkendal
 
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
CASRAI
 
, please see the feedback within your paper and in the scoring rub.docx
, please see the feedback within your paper and in the scoring rub.docx, please see the feedback within your paper and in the scoring rub.docx
, please see the feedback within your paper and in the scoring rub.docx
madlynplamondon
 

Semelhante a Query relaxation - A rewriting technique between search and recommendations (20)

Delivering balanced solutions by nu cognitive for pints with pdx product mana...
Delivering balanced solutions by nu cognitive for pints with pdx product mana...Delivering balanced solutions by nu cognitive for pints with pdx product mana...
Delivering balanced solutions by nu cognitive for pints with pdx product mana...
 
Balancing Business + Usage + Technology by Daniel Walsh nuCognitive Product M...
Balancing Business + Usage + Technology by Daniel Walsh nuCognitive Product M...Balancing Business + Usage + Technology by Daniel Walsh nuCognitive Product M...
Balancing Business + Usage + Technology by Daniel Walsh nuCognitive Product M...
 
Formulating an Effective Search Query
Formulating an Effective Search QueryFormulating an Effective Search Query
Formulating an Effective Search Query
 
Balancing Business + Usage + Technology Workshop by Daniel Walsh nuCognitive
Balancing Business + Usage + Technology Workshop by Daniel Walsh nuCognitiveBalancing Business + Usage + Technology Workshop by Daniel Walsh nuCognitive
Balancing Business + Usage + Technology Workshop by Daniel Walsh nuCognitive
 
Improving Research Visibility Part 6: Academic Social Networking
Improving Research Visibility Part 6: Academic Social NetworkingImproving Research Visibility Part 6: Academic Social Networking
Improving Research Visibility Part 6: Academic Social Networking
 
Strategyfordummies
StrategyfordummiesStrategyfordummies
Strategyfordummies
 
Digital Strategy for dummies
Digital Strategy for dummiesDigital Strategy for dummies
Digital Strategy for dummies
 
SEJ Webinar_How To Supercharge Your Keyword Research with Powerful Topic Clus...
SEJ Webinar_How To Supercharge Your Keyword Research with Powerful Topic Clus...SEJ Webinar_How To Supercharge Your Keyword Research with Powerful Topic Clus...
SEJ Webinar_How To Supercharge Your Keyword Research with Powerful Topic Clus...
 
I'm a Recruiter, Not a Data Scientist!
I'm a Recruiter, Not a Data Scientist!I'm a Recruiter, Not a Data Scientist!
I'm a Recruiter, Not a Data Scientist!
 
Select a Research Brand Name
Select a Research Brand NameSelect a Research Brand Name
Select a Research Brand Name
 
925 plenary rexer_using our laptop
925 plenary rexer_using our laptop925 plenary rexer_using our laptop
925 plenary rexer_using our laptop
 
Funding model technorama antwerp - may 2017 copy
Funding model   technorama antwerp - may 2017 copyFunding model   technorama antwerp - may 2017 copy
Funding model technorama antwerp - may 2017 copy
 
Publishing Procedure and Strategies to Improve Research Visibility and Impact
Publishing Procedure and Strategies to Improve Research Visibility and ImpactPublishing Procedure and Strategies to Improve Research Visibility and Impact
Publishing Procedure and Strategies to Improve Research Visibility and Impact
 
Presentation by vikas dubey
Presentation by vikas dubeyPresentation by vikas dubey
Presentation by vikas dubey
 
Nowadays the Reliance on electrical energy became very curcial. th.docx
Nowadays the Reliance on electrical energy became very curcial. th.docxNowadays the Reliance on electrical energy became very curcial. th.docx
Nowadays the Reliance on electrical energy became very curcial. th.docx
 
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docxRunning Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
Running Head TOWN GUIDE ANDROID APPLICATION5TOWN GUIDE ANDROI.docx
 
ClickZ Live: Smart Analytics
ClickZ Live: Smart AnalyticsClickZ Live: Smart Analytics
ClickZ Live: Smart Analytics
 
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
Project Credit: Amy Brand - Beyond authorship: recognising the contributions ...
 
Long Tail Keyword Suggestion for Sponsored Search Advertising
Long Tail Keyword Suggestion for Sponsored Search AdvertisingLong Tail Keyword Suggestion for Sponsored Search Advertising
Long Tail Keyword Suggestion for Sponsored Search Advertising
 
, please see the feedback within your paper and in the scoring rub.docx
, please see the feedback within your paper and in the scoring rub.docx, please see the feedback within your paper and in the scoring rub.docx
, please see the feedback within your paper and in the scoring rub.docx
 

Último

Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
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
Abortion pills in Riyadh +966572737505 get cytotec
 

Último (20)

Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
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
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
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
 
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
 

Query relaxation - A rewriting technique between search and recommendations

  • 1. Query relaxation A rewriting technique between search and recommendations René Kriegler, @renekrie Haystack - The Search Relevance Conference 24 April 2019
  • 2. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) About me More than 10 years experience as a freelance search consultant, often in a role for OpenSource Connections Focus: - Search relevance optimisation - E-commerce search - Solr - Coaching teams to establish search within their organisation Organiser of MICES - Mix-Camp E-commerce Search (Berlin, 19 June, mices.co, right after Berlin Buzzwords) Maintainer of Querqy (OSS query rewriting library - github.com/renekrie/querqy) 2
  • 3. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) No results 3
  • 4. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) No results - strategies Apply synonyms and hyponyms (laptop = notebook; shoes => trainers) Spelling correction (Did you mean ...? / We’ve searched for ...) Also search in low-quality data fields Loosen boolean constraints (AND -> OR, mm<100%) Apply hypernyms (boots => shoes) Use more distant semantic relation (beard balm => trimmer) Show more general recommendations (related to user’s shopping history, popular items) 4
  • 5. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) No results - strategies Apply synonyms and hyponyms Spelling correction Also search in low-quality data fields Loosen boolean constraints Apply hypernyms Use more distant semantic relation Show more general recommendations 5 Explainable? (in e-commerce search) Don’t want to tell mm: no; AND/OR: yes, but bad UX Don’t need to tell Can be hard
  • 6. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) No results - Query relaxation 6 Explainable! (& conversational!)
  • 7. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation Which query term should be removed? 7
  • 8. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation - intuition 8 iphone 9 => iphone 9 (*) iphone 9 => iphone 9
  • 9. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation - intuition 9 iphone 9 plus => iphone 9 plus (?) iphone 9 plus => iphone 9 plus (?) iphone 9 plus => iphone 9 plus
  • 10. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation - intuition 10 black boots => black boots (*) black boots => black boots
  • 11. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation - intuition 11 purple boots => purple boots (?) purple boots => purple boots
  • 12. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation - intuition 12 (?) usb charger 12v => usb charger 12v (?) usb charger 12v => usb charger 12v (?) usb charger 12v => usb charger 12v
  • 13. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query intent & information need Apply synonyms and hyponyms Spelling correction Also search in low-quality data fields Loosen boolean constraints Apply hypernyms Use more distant semantic relation Show more general recommendations 13 Trying to match original information need Remotely related to user intent Query relaxation
  • 14. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation 14 “A popular approach to cope with empty-answers is query relaxation, which attempts to reformulate the original query into a new query, by removing or relaxing conditions, so that the result of the new query is likely to contain the items of interest for that user.” (Mottin et al., 2013) “We present a method which we call relaxation for expanding deductive database and logic programming queries. The set of answers obtained with the relaxation method includes both answers deduced traditionally and answers related in some way with the original query. The relaxation method expands the scope query by relaxing the constraints implicit in the query.” (Gaasterland et al., 1992) “An extended query-document matching system is described in this study that relaxes the stringent requirements of the conventional Boolean retrieval operations.” (Salton et al., 1983)
  • 15. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Query relaxation 15 => How can we find the best query term to be removed from the query so that “... the result of the new query is likely to contain the items of interest for that user” “... answers [are] related in some way with the original query” ? => How can we test, compare and optimise solutions?
  • 16. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Online testing 16 Click-through-rate / hit rate Exit rate / time spent on site => Do we manage to keep the user interacting with our site? => similar to recommendations / exploratory search
  • 17. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Finding the term to be dropped: data sets 17 Data sets for training and evaluation Find pairs: - a long query having 0 results - a corresponding relaxed query having results
  • 18. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Finding the term to be dropped: data sets 18 FREQ: Query frequencies - Have we observed the original and the relaxed query before? (We want to make sure that we produce a meaningful query.) COOC: Query cooccurrences per session - Have the original and rewritten query occurred together in a session? => Can we find the original/rewritten query pair in tracking data? How often? (more often is better)
  • 19. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 0 - Drop random term (baseline) 19 Remove a random term from the query
  • 20. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 1 - Drop shortest term 20 Remove the shortest term from the query
  • 21. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 2 - Drop shortest non-alphabetical term 21 Remove the shortest term that doesn’t contain any alphabetical character
  • 22. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 3 - Combined 1 and 2 22 Remove the shortest term that doesn’t contain any alphabetical character, fall back to removing shortest term if all terms have >=1 alphabetical character
  • 23. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 4/5 - Drop most/least frequent term 23 Remove the term with the highest/lowest index frequency
  • 24. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 6/7 - Drop term with highest/lowest entropy 24 Remove the term with the highest/lowest entropy across navigational categories
  • 25. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 8 - Keep most similar query (Word2vec) 25 Use the rewritten query that is most similar to the original query based on Word2vec embeddings [as mentioned in D.Tunkelang, Query relaxation, https://bit.ly/2ItxF3Z]
  • 26. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Word2vec (CBOW) 26 w (t-2) pepe jeans w(t) projection Input Output slim cut w (t-1) w (t+1) w (t+2) london london Sequence of words
  • 27. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 8 - Keep most similar query (Word2vec) 27 Use the rewritten query that is most similar to the original query based on Word2vec embeddings Train Word2Vec embeddings - word = query term, window = query - 300 dimensions Use sum of word(=term) vectors to represent the queries (original/rewritten) Calculate cosine similarity between original query and each rewritten query Use rewritten query that is most similar to the original query
  • 28. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 8 - Keep most similar query (Word2vec) 28 Use the rewritten query that is most similar to the original query based on Word2vec embeddings
  • 29. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 9 - Keep most similar query (Query2vec) 29 Use the rewritten query that is most similar to the original query based on query embeddings [Grbovic et al., Scalable Semantic Matching of Queries to Ads in Sponsored Search Advertising. SIGIR 2016]
  • 30. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) ‘Query2vec’ (CBOW) 30 q (t-2) smartphone smartphone 64g q (t) projection Input Output iphone iphone 64g q (t-1) q (t+1) q (t+2) galaxy 64g galaxy 64g Queries in a session
  • 31. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 9 - Keep most similar query (Query2vec) 31 Use the rewritten query that is most similar to the original query based on Query embeddings
  • 32. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 10 - MNN with Word2vec input 32 Predict the term to be dropped using a multi-layer neural network (MNN) with Word2vec embeddings as input.
  • 33. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 10 - MNN with Word2vec input 33 0: 0.01 1:-0.94 ... 300: 0.18 0: 0.63 1: 0.56 ... 300: 0.04 0:-0.59 1: 0.02 ... 300: 0.77 0: 0.00 1: 0.00 ... 300: 0.00 0: 0.00 1: 0.00 ... 300: 0.00 0: 0.00 1: 0.00 ... 300: 0.00 0: 0.00 1: 0.00 ... 300: 0.00 0: 0.00 1: 0.00 ... 300: 0.00 nike boots 11 0: 0 0: 1 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 2 hidden layers Input Output
  • 34. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 10 - MNN with Word2vec input 34 Predict the term to be dropped using a multi-layer neural network (MNN) with Word2vec embeddings as input
  • 35. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 11 - MNN / Word2vec plus wordshape 35 Predict the term to be dropped using a multi-layer neural network (MNN) with Word2vec embeddings and wordshape features as input. Add additional dimensions to the input vector: - Word length - Number of digits - Does the word have an ‘e’ in the penultimate or ultimate position?
  • 36. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 11 - MNN / Word2vec plus wordshape 36 ... 301: 4.00 302: 0.00 303: 1.00 ... 301: 5.00 302: 0.00 303: 0.00 ... 301: 2.00 302: 2.00 303: 0.00 ... 301: 0.00 302: 0.00 303: 0.00 ... 301: 0.00 302: 0.00 303: 0.00 ... 301: 0.00 302: 0.00 303: 0.00 ... 301: 0.00 302: 0.00 303: 0.00 ... 301: 0.00 302: 0.00 303: 0.00 nike boots 11 0: 0 0: 1 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 2 hidden layers Input Output
  • 37. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 11 - MNN / Word2vec plus wordshape 37 Predict the term to be dropped using a multi-layer neural network (MNN) with Word2vec embeddings and wordshape features as input.
  • 38. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) 11/12 - MNN / Word2vec plus term stats 38 Predict the term to be dropped using a multi-layer neural network (MNN) with Word2vec embeddings and per-field DF or index frequency.
  • 39. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Conclusion 39 Query relaxation: - best understood as a query recommendation - information need not necessarily matched but relaxed query still related to user intent - can be communicated nicely to the user (‘conversational’) Best approach to find term to be dropped: - Multi-layer neural network with Word2Vec plus wordshape features as inputs. It can be extended to incorporate further features and optimisation targets.
  • 40. Query relaxation - a rewriting technique between search and recommendations, Haystack, 24 April 2019, © René Kriegler (@renekrie) Thank you! http://www.rene-kriegler.com @renekrie 40