Previewing AI Search results
To evaluate search engine results or review specific outcomes for a customer, utilize the Preview feature within the AI Search Engine. Additionally, you have the option to compare results from two different indices.
- Go to AI Search > Indexes.
- Select an index from the list.
- Go to the Preview section.
- In the search box, type any phrase to see the results you get from particular words.
- To see the product recommendation for a specific customer, paste the UUID of the customer.
Editing preview attributes
You can set the preview attributes by clicking Edit preview attributes. By changing the preview attributes, you can control the attribute values that will appear in the preview.
More information about attributes for preview is available here.
Comparing indices
Comparing indices allows you to assess results they return. Before entering any search query, you can apply filters within each index.
-
Click Compare results.
Result: A pop-up appears. -
From the Select index dropdown list, select the index with which you want to compare the index you’re previewing.
-
Confirm your choice by clicking Apply.
Result: -
In the search box, enter a query so you can compare the results produced by each index.
Query and ranking details
Query and ranking details extend the search preview with transparent insights into the generation of search results, including query transformations, applied rules, filters, sorting details. Its purpose is to improve satisfaction by making search results more explainable and transparent, helping you understand the mechanics of generating results. It aims to improve transparency and simplify debugging for you.
Query and ranking details are available for all search methods (hybrid, keywords, semantic).
Query details
In the Query details section, which is available after performing a search request, you can review the modifications made to the original search phrase in a search query. Several factors contribute to these modifications:
-
General overview - This section provides an overview how the original search phrase has been changed due to rules, synonyms, and suggestions from the search engine, focusing specifically on numbers.
- Phrase typed by a user - This is original search phrase entered by the user.
- Final searched phrase - This is the final phrase for which the search request was made; it’s changed as a result of applying rules, synonyms, and suggestions from the search engine.
- Query rules that have changed phrase - This section shows how many rules have been applied to the original phrase.
- Used synonyms - This section shows how many synonyms were searched and their results added to the search results.
-
Query transformation - This section shows a list of applied rules to the original searched phrase. The rules provide IF - THEN logic that lets you influence the search results. This way you can manage the behavior of the search engine by telling it to promote specific products, replace the query or a word in the query or remove a word from it in specific circumstances.
- The condition that has been met - This column shows the rule condition met by the original query.
- Consequence - This column shows what changes have been made to the original searched phrase.
-
Used synonyms - This section shows a list of applied two-way synonyms to the original searched phrase. Two-way synonyms work in two directions. For example, if “telephone”, “smartphone”, and “phablet” are two-way synonyms, searching for “smartphone” or “phablet” also shows the results for “telephone”.
Ranking details
In the ranking details section, you can check how the rules, sorting and ranking settings have impacted the listing of search results.
-
General overview:
- Items found - This section shows the total number of items that matched the query (including hidden items; an item can be hidden as a consequence of the applied rules).
- Hidden items - This section shows the number of all items that are hidden as a result of the rules applied to the searched phrase.
- Promoted items - This section shows the number of items promoted as a result of the rules applied to the searched phrase.
- Ranking sorting type - This section shows the method of sorting search results. This value is definable in Sortable attributes of the index settings.
-
Hidden items - This section shows a list of items (name and item ID) hidden from the results. Items can be hidden due to query rules.
-
Search results filters - This section shows a list of rules whose consequence is Filter query results. The Conditions column shows the conditions of the rule and the Consequences column shows the changes that are made to the results.
-
Boosted attributes - This section shows a list of rules whose consequence is Boost by attribute. The Conditions column shows the conditions of the rule and the Consequences column shows the changes that are made to the results.