NeuralSeek extension setup
NeuralSeek by Cerebral Blue is a combined search and natural-language generation system that is designed to make conversational AI feel more conversational. It requires that you load all your content into IBM Watson® Discovery. Then, when a user asks a question, it has Discovery search for multiple relevant documents and then it generates a natural-language answer that uses the contents of those documents. In some cases, the answer might be taken directly from a single document, and in others, the answer can include information from multiple sources that are combined into a single coherent statement. For each query, NeuralSeek returns a single answer and a confidence score. In most cases, it also returns a URL of a document that influenced the answer, which might be one of several documents.
To set up the extension for NeuralSeek search:
Set up IBM Watson® Discovery
-
You need an instance of IBM Watson® Discovery. Because NeuralSeek can modify your data as needed to make it more effective, make sure it is not an instance with important data that you are using for other purposes.
-
In Discovery, create a project and load the documents that you want to use.
Get the NeuralSeek OpenAPI specification and API Key
-
You also need an instance of NeuralSeek on IBM Cloud.
-
In NeuralSeek, open the Configure page and enter your information in the Discovery instance details section.
-
On the Integrate page, and click the OpenAPI file link to download the
NeuralSeek.json
OpenAPI specification file configured for your instance. -
Also on the Integrate page, copy the API key for NeuralSeek. The API key for NeuralSeek is not the same as the API key for Discovery that you used on the Configure page. The API key for NeuralSeek is only available on the Integrate page.
Simple instructions for setting up NeuralSeek are available on the Integrate page. You can also follow those instructions to get NeuralSeek working with watsonx Assistant.
Create and add extension
-
In your assistant, on the Integrations page, click Build custom extension and use the OpenAPI specification file to build a custom extension. For general instructions on building any custom extension, see Building a custom extension.
-
After you build the NeuralSeek extension and it appears on your Integrations page, click Add to add it to your assistant. Use your NeuralSeek API key to authenticate. For general instructions on adding any custom extension, see Adding an extension to your assistant.
Add the NeuralSeek starter kit action template
-
Open the Actions page.
-
If you have no actions, choose Create a new action. If you already have some actions, choose New action.
-
On Create an action, choose Quick start with templates.
Quick start with templates is available in English-language assistants only.
-
On Quick start with templates, add the NeuralSeek search starter kit.
Edit system actions
-
Click Set by assistant and open the No matches action.
-
Delete the two default steps.
-
Add a step. Set And then to Go to a subaction and choose the NeuralSeek search action.
-
If you aren't connecting your customers to a live agent, you might want to edit the Fallback action in the same way as No matches.
Using your NeuralSeek extension
Issue a query to your assistant. If no action that matches that query, then it uses NeuralSeek to produce search results.
For many use cases, NeuralSeek alone is enough to deploy an assistant. If you are happy with your assistant, you might want to deploy it for real-world use right away. Use the Analyze page in watsonx Assistant or the Curate page in NeuralSeek to see what kinds of questions users are asking and actions for the common user requests. The Curate page can automate the creation of new actions and generate new example utterances that trigger those actions. It can also merge any existing actions with the actions that it generates so you can update an existing assistant. For more information, see the NeuralSeek documentation