Skip to content

Using ChatGPT 3.5-Turbo to solve the problem of Articulation Gap in e-commerce search queries

Notifications You must be signed in to change notification settings

chinmaysharmacs10/Articulation_Gap_Gen_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solving Articulation Gap using Generative AI

Exploring the use cases of Large Language Models (LLMs) in search systems!

  • On e-commerce platforms, when users do not know the exact/catalog correct term for an item, they will use other related terms to describe what they require. These search queries are known as “Articulation Gap (AG)" queries.
  • In a lexial index based retrieval system, AG queries result in low or irrelevant recall. This leads to bad customer experience and has an adverse effect on the business.
  • We leverage the power of Large Language Model (ChatGPT-3.5 Turbo) to address the above problem.
  • Our approach can be broken down into three stages. Each stage uses a separate prompt for its specified task:
    1. Attribute tagging: Identifying which token(s) map to which attribute, similar to Named Entity Recognition (NER).
      Example -> input: "0 year clothes winter", output: {"product": "winter clothes", "age":"newborn", "gender":"any"}
    2. Phrase replacement: Replacing AG affected attributes with catalog standard vocabulary.
      Example -> newborn is replaced with infant to reformulate the query to "infant winter clothes"
    3. Query expansion: Expanding the query by replacing the generic category in the query with specific verticals of that category. Example -> infant (onesies OR sleepsuits OR sweaters OR jackets)
  • The expanded query is then used for retrieval from the search index, leading to higher and revelant recall.

To experience the web app:

  • Clone this repository
  • Run the server: python app.py
  • Open localhost:5000 in your browser
  • Enter your query in the search bar

These slides will help you understand the details!

ag_gen_ai_1 ag_gen_ai_2 ag_gen_ai_3

Checkout these examples!

In the below images, the left pane is Flipkart (India's leading e-commerce platform) and the right pane is our web application.

ag_gen_ai_4 ag_gen_ai_5 ag_gen_ai_6 ag_gen_ai_7

About

Using ChatGPT 3.5-Turbo to solve the problem of Articulation Gap in e-commerce search queries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published