What is TypeAhead?
By Typeahead we are referring to auto complete suggestion products.
A nice high level introduction and general guidelines of predictive search ca be found at algolia blog - What is predictive search? What is autocomplete?
System Design Examples
Here are some example of system Design,
- Pedro Lopes blog - Learning to build an Autocomplete System and his github repository demos an implemention
- From an algorithmic perspective, how to scale TRIE Data Structure https://www.youtube.com/watch?v=jFOR1LBEUgM
Some existing Autocomplete APIs,
- Bing Autosuggest API, (MS Bing](https://www.microsoft.com/en-us/bing/apis/bing-autosuggest-api)
- Opera autocomplete in custom search engine, ref https://superuser.com/questions/606778/opera-autocomplete-in-custome-search-engine
- clearbit Autocomplete API, https://clearbit.com/docs#autocomplete-api
Company Autocomplete is an API that lets you auto-complete company names and retreive logo and domain information.
Google TypeAhead team provides a high level overview in their blog posts, google blog - How Google autocomplete works in Search
You'll notice we call these autocomplete "predictions" rather than "suggestions" and there's a good reason for that. Autocomplete is designed to help people complete a search they were intending to do, not to suggest new types of searches to be performed. These are our best predictions of the query you were likely to continue entering.
They identifies areas of integrity as well.
google query autocomplete api related references
- Google Maps placce autocomplete api: https://developers.google.com/maps/documentation/places/web-service/query
Google Cloud Platform Autocomplete Products
- GCP Retail Search has auto complete features. ref, https://cloud.google.com/retail/docs/completion-overview
- GCP Talent Autocomplete: https://cloud.google.com/talent-solution/job-search/docs/autocomplete
On the frontend side, we got following examples,
- Google places autocomplete implementation using Twitter bootstrap typeahead and Google's autocomplete and geocoding services https://gist.github.com/badsyntax/4330899
Twitter's typeahead works as nice example on frontent side: static typeahead prediction.
We can start with a bootstrap and then gradually build a dataset from people's interactions. It is an interesting problem find good quality dataset to cover some category of predictions.
NOTE: this article might seem highly technical, let us know in comments if you have any question or have specific questions.