![]() Suggestions for: mountain hike mountain hiking 0.9756487607955933 Here are some examples from one of the labs in the chapter! If you want to learn how to implement an accurate and effective AI-driven autocomplete (and semantic search in general), I covered the steps extensively in Chapter 13 for the book AI-Powered Search ( ) “Semantic Search with Dense Vectors”. ![]() ![]() By leveraging concept embeddings from semantic similarity models and nearest-neighbor search, the solution becomes much more powerful, requiring less rules and less gardening in the long term. In Solr or Elasticsearch, this would need to be done on a case-by-case basis, and constantly managing a large synonyms list to cover all the possibilities. But I may also be interested in concepts such as “rehydration” or “hydration pack”. How it’s changing: instead of matching strings, what if you could match meaning and intent? For example, if I type ‘dehyd’ I would expect suggestions such as “dehydrated” or “dehydration”. Suggesters work by using occurrences or co-occurrences of terms together, and finding the most appropriate suggestion based on statistics in the index and configuration of parameters. In Solr and Elasticsearch, this is done by enabling one or more “ suggest“ components, and returning results for a tuned configuration of those components. By tuning how the field is constructed, and how to weight the ranking, you can get a good list of phrases that match the query text. Parts of phrases can be matched effectively with a specialized search field. Traditionally, autocomplete has worked by taking what the person has already typed into the search bar, and matching it to prefixes of terms or phrases based on content in the index. Sometimes known as autosuggest, or query completion, this suggests completions as you type for full terms, related concepts, titles, or other items. I’ve chosen three stages of the phase to illustrate how this happens in most mature search applications: Autocomplete, Spellcheck, and Query Rewriting Autocomplete This phase is all about guiding the person searching to enable exploration, reduce friction, and mitigate backtracking. Prediction is what happens before the search is executed by the engine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |