How to Generate SmartHub Best Bets at Crawl Time

About the SmartHub Best Bets Feeder Component

The information below describes how to automatically generate SmartHub Best Bets at crawl time using the SmartHub Best Bets Feeder component.

  • Use this component to leverage extracted metadata at crawl time for generating Best Bets results and saving them into SmartHub.

  • When a user searches for one of the Best Bets concepts pushed by this stage, the associated best bet result appears in the SmartHub search results page (shown below).

Example

Prerequisites

Be sure to satisfy the following list of prerequisites before you continue:

  • Record the following data:
    • Elastic address
    • Index name and credentialsused in the SmartHub NLQ Configuration page.

How to Configure the Component

  1. Add the SmartHub Best Bets Feeder component to a new or existing pipeline(follow link for instructions).
  2. After you add the component, click the "Apply" button to save your changes.
  3. Select the "SmartHub Best Bets Feeder" entry from the Existing Components list.



  4. The configuration screen appears.
  5. Configure the component using the table of options below:

Option name

Description

Default value

Elastic endpoint URL The URL of the Elastic instance that SmartHub is configured to use for NLQ. http://localhost:9200
Elastic username/password The credentials used to authenticate against the Elastic instance.
Elastic timeout The maximum time to wait for the Elastic request to execute.

30

Bot index name The name of the bot index configured in SmartHub on the NLQ Configuration page. bot-index
Input property name
  • The name of the property containing the information to extract the Best Bets from.

  • The property must be an array of values and the values must be in the format BestBetTitle: BestBetDescription.

  • Example: 'Infant: A child between 1 and 23 months of age.' Example of property name : SciSpacyCUIDetails 


Dynamic template

An HTML template is used for the BestBet HTML response in SmartHub. 

The template must contain the tags:

  • {BestBetName}
  • {BestBetDescription} 

These are later replaced with their actual values. 

<h2>{BestBetName}</h2><p>{BestBetDescription}</p>)