How to Enable External Query Processing
This feature enables you to process the Type-Ahead, NLQ Enables users to find information by making requests as if they were speaking to a person. or Search queries before being executed by the SmartHub federation engine
How it Works
- When the user enters text in the Type-Ahead, JavaScript code for the provider calls the Type-Ahead service (TypeAheadService.svc) and requests suggestions.
- The service first checks the configuration from the Admin site.
- The service then proceeds to call AutoClassifier, and send it:
- The query text
- Configured properties
- Stages to execute
- AutoClassifier runs the configured stages and passes the incoming data to the stage for processing.
- The output of the stage is then returned to SmartHub.
- SmartHub processes the output and returns it to the UI as a list of suggestions to display to the end user for the query they ran.
Configuring the Feature
- Go to your SmartHub Admin site.
- Navigate to the External Query Processing page.
- Configure the Enrichment endpoint address
- Point it to your AutoClassifier ContentProcessingJson endpoint:
- Configure the Enrichment parameters
- Specify a comma-separated list of all the stages to be executed
- The list typically includes only the NLQ Metadata Capture stage name that you have configured in AutoClassifier
- Specify a comma-separated list of all the stages to be executed
Enabling the Feature so that it can be Used for Type-Ahead
- To support the FilterSuggestions TypeAhead provider capability, check the option Enable as type-ahead provider.
- Optionally, you can also customize the following settings:
- Override enrichment parameters:
- Specify a different list of stages that should be executed.
- This overrides the list specified in step 4.
- Supported Result Source IDs:
- Specify a comma-separated list of Result Source GUIDs so that you can restrict when the FilterSuggestions filter is used
- If the Type-Ahead on one page is configured with a different Result Source ID then the FilterSuggestions provider won't return anything
- Specify a comma-separated list of Result Source GUIDs so that you can restrict when the FilterSuggestions filter is used
- Override enrichment parameters:
- Optionally, you can also customize the following settings: