Get the code
View the demo
By Rich Hagarty | Last updated October 11, 2018
Artificial IntelligenceKnowledge DiscoveryNode.js
A standard search for a site can return too many results for someone to want to go through. However, it’s possible to quickly build out a search interface for your Watson Discovery instance using out-of-the-box UI components that query and manipulate the enriched data to return more relevant search results. This code pattern uses publicly available reviews on Airbnb listings to demonstrate how to use individual UI components to visualize insights. You can then easily switch out the dataset to adapt it to your own use cases.
By querying and manipulating enriched data, you can build a more insightful search interface. This code pattern provides a Node.js app built on the Watson Discovery Service that does just that. The pattern demonstrates how you can use individual out-of-the-box UI components to extract and visualize the enriched data provided by the Watson Discovery analytics engine.
The main benefit of using the Watson Discovery Service is its powerful analytics engine that provides cognitive enrichments and insights into your data. The app in this code pattern provides examples of how to showcase these enrichments through the use of filters, lists, and graphs. The key enrichments are:
The app uses standard search UI components such as filter lists, tag clouds, and sentiment graphs, but also more complex Discovery options such as the passages and highlight features. With these two features, the app identifies the most relevant snippets in your data based on your query and is more likely to return the data that you’re searching for.
When you have completed this code pattern, you should know how to:
June 23, 2018
August 3, 2018
April 27, 2018
Artificial IntelligenceKnowledge Discovery+
Back to top