6 min read

Why semantic search?

Providing truly relevant results is paramount in commerce search now that shoppers are increasingly using more conversational and complex queries. In these situations, where keyword-based search falls in recognizing the context of queries and the intent of shoppers, semantic search comes into play.

Semantic search identifies the shopper's intent, the contextual meaning, and similarity between queries and products in your catalogue, returning more relevant product results faster.

Why semantic search?

Since the way shoppers interact with semantic search is more conversational, they feel better understood and the relationship with your brand is reinforced thanks to their experience in your commerce store. Semantic search is useful in certain cases where zero-result scenarios are more likely, helping to minimize those by offering results for semantically similar queries. Using semantic relationships inherent in language enable a powerful recommendation system that enriches results by creating a cascade of relevant products.

For example, if you search for the term “accent chair”, semantic search displays results for similar searches like decorative search, patio chair, or rocking chair. The related results give you some relevant search options that are semantically similar to your initial search. Semantic search achieves this by interpreting search queries and product-related information as vectors, the semantic neighbors of words.

Semantic search leverages artificial intelligence (AI), machine learning (ML), and natural language processing (NLP), understanding (NLU), and generation (NLG) techniques to capture the meaning and context of unstructured data. For a commerce search context, unstructured data applies to queries and product catalogue information.

An advanced semantic search finds its foundations on vector search since it translates the semantics relationships and meanings of commerce search data into something understandable for computers. Vector search transforms words, sentences, or entire documents into vector embeddings, numerical representations placed in a multidimensional space in such a way that similar meanings are positioned closer together. When the vector search is performed, the query is transformed into a vector embedding to calculate the similarity or distance between data using approximate nearest neighbor (ANN) algorithms. So, similar products are placed close together and close to their corresponding queries in a high-dimensional vector space. All this process returns more precise and relevant product results faster to complex and conversational queries.

By analyzing the positions and distances of vectors, semantic search can infer semantic relationships, such as synonyms, related concepts, or even nuanced thematic links between seemingly unrelated terms. As seen, vector search and semantic search are interconnected but fundamentally different concepts, being vector search the base to build on top a semantic search, enabling data retrieval based on relevance.

interact

To learn more about the ins and outs of the Empathy Platform Semantics microservice to return semantic results, check out the Microservices layer from the Interactive map.

Traditional keyword search instead is based on exact keyword matching, trying to match identical terms in queries with product catalogue information. If the precise search terms aren't included in the product catalogue, no results are returned. So, in many situations, traditional commerce search experiences need to be curated and complemented with features such as related tags, facets and filters, synonyms, or partial results.

In keyword-based search experiences, when shoppers are looking for something but they're not sure what it’s called, if they don’t match the exact search terms used in your product catalogue, they probably come to a dead end and leave searching. However, in a semantic search experience, if shoppers don’t know the exact search terms but know what the product does or give a description, they probably find relevant results.

Semantic search advantages

Semantic search overcomes keyword matching constraints providing quick and accurate results to queries and meeting the shoppers at a more human level:

  • Disambiguating term search context. It searches by and understands what shoppers mean, improving product relevance and discovery.
  • Handling natural language queries. It’s good for fuzzy, broad, and conversational queries.
  • Understanding synonyms and search term variations, like polysemy. It can retrieve products that match the intended meaning, even if different search terms or phrases are used.
  • Improving UX. The inner search process is faster and more efficient.
Semantic search limitations

Despite the benefits of semantic search in commerce search experiences, keyword matching still rules for precise and simpler query search contexts.

For example, if a shopper searches for the query “cupcake” in a semantic-based commerce search, the search engine will look for semantically similar queries such as muffins or even cinnamon rolls, croissants, and cookies, bringing results that probably are less relevant than keyword-matching results. Instead, in a traditional commerce search context, the query “cupcake” can return some accurate results like Vanilla and chocolate cupcakes, Mini iced white cupcakes, or Bakery fresh cupcakes, based on the matching of the search terms with the product catalogue.

Semantic search in Empathy Platform

Empathy Platform’s semantic search is built on a completely cloud-native stack, leveraging the capabilities of Kubernetes and Apache Spark to train semantic models effectively and create a computationally sustainable solution.

To ensure customer data and privacy are protected, Empathy Platform uses commerce-specific tagging events, which collect customer domain data under shoppers’ consent, and guarantee a personalized search experience that respects shoppers’ privacy. This customer domain-specific data enriches the open-source foundation semantic models to help the Empathy Platform Semantics microservice understand the types and nature of the different datasets, without cross-domain jumping or using information from other customers, ensuring thus the integrity of customers' data.

interact

Curious about how data privacy is protected when training semantic models? Check the Semantic models in Empathy Platform.

In situations where traditional keyword-based search doesn’t account for the rich semantic information contained within the semantic data models, Empathy Platform leverages the benefits of AI-conversational search experiences to combine semantic and keyword matching techniques in a hybrid solution. So, semantic search in Empathy Platform extends and enriches the capabilities of keyword search to resolve no-results scenarios and offer responses to long-tail queries with Semantics recommendations, or provide synonym suggestions, for example.

interact

Want to review the scenarios where semantic search enhances keyword search? Check out Experience AI-powered semantic search in Empathy Platform.

Empathy Platform semantic search complements keyword search by implementing consent-integral based vector and semantic models to add contextual meaning-related information to the base keyword mechanisms and ensure that the hybrid-based search and discovery experiences are safe and integral.

Empathy Platform’s semantic search capabilities are becoming part of shoppers’ search experiences. They are seamlessly integrated into the shopping routines and eventually make up a unified index with keyword-based search as part of a unified, powerful search solution.

interact

Combining semantic and keyword search mechanisms for a hybrid search experience is not that easy. Understand Empathy’s technical concerns and solutions in its way to hybrid search on Semantic and keyword search as a unified index.