Skip to content

Product search autocomplete implemented using keyword search and semantic search in Python. For keyword search, TheFuzz library is used and for semantic search Sentence-transformers with Faiss is used.

Notifications You must be signed in to change notification settings

siddhantgithub/Text-Autocomplete

Repository files navigation

Amazon Product Autocomplete

This notebook provides a solution for providing product recommendations based on the search query from a user. The notebook implements two approachs:

  • Keyword based search using TheFuzz
  • Semantic search using sentence-transformers and Faiss

The steps implemented in this notebook are:

  • Data loading and basic analysis
  • Data cleaning
  • Data preprocessing
  • Search implementation
  • Testing

For testing, we have considered three strings,

  • "Fire TV" straightforward keyword based search
  • "A birthday gift for kids party" for semantic based search
  • "Dire tablet" for misspelling text search

Further improvements needed:

  • Optimize search
  • Semantic search needs improvement. Currently, it is done only on product names (extracted from the data); ideally it should be done on all names
  • More comprehensive testing

About

Product search autocomplete implemented using keyword search and semantic search in Python. For keyword search, TheFuzz library is used and for semantic search Sentence-transformers with Faiss is used.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published