NeuralSeek
Pre-Requisites
- Access to a NeuralSeek plan
- Setup Watson Assistant and Watson Discovery
High level Steps
- Lite
- Lite-WatsonX
- Create NeuralSeek custom extension
- Create WA action to trigger NeuralSeek Search
- NeuralSeek Advanced Features
Setup NeuralSeek and integrate with Watson Discovery
If you initiated a Lite plan
- Click on the "Launch NeuralSeek" button.
- You'll land on the "Configure" tab.
- Enter the name of the company or organization that NeuralSeek will be generating answers for. Click "Next"
- Input Watson Discovery KnowledgeBase details. Test connection by clicking "Test". Once tested, click "Next".info
Where to get credentials
- Discovery Service Url: within IBM Cloud -> resource list -> Watson Discovery Instance -> Manage -> Credentials
- Discovery API Key: within IBM Cloud -> resource list -> Watson Discovery Instance -> Manage -> Credentials
- Discovery Project ID: within Watson Discovery: Upper left Hamburger icon -> Integrate and deploy -> API Information
- For Virtual Agent Type, select "Watson Assistant Type". Click "Next". Click "Next".
- Navigate to "Seek" tab. Test NeuralSeek with e.g. "What products or services do you offer?"
For NeuralSeek + WatsonX.ai version
If you initiated a Lite-WatsonX plan credentials for LLM
- LLM API Key:
- Go to IBM Cloud API Keys
- Create -> Enter Name -> Copy
- LLM Endpoint
- Go to WatsonX Platform
- Prompt Lab -> View code (Right hand side, to the right of Model) -> Copy the API endpoint after
curl
https://us-south.ml.cloud.ibm.com/ml/v1-beta/generation/text?version=2023-05-29
- LLM Project ID:
- Go to WatsonX Platform
- Projects -> Manage -> General -> Details -> Project ID
- If project doesn't exist:
- New Project -> Create an empty project -> Input Name -> Select storage service -> Create
- Navigate within Project -> Manage -> Services & integrations
- Click "Associate Service" -> Select services with type "Watson Machine Learning" -> click "Associate"
- Navigate to General tab -> Details -> copy Project ID
Create NeuralSeek custom extension
- In Watson Assistant, on the "Integrations" tab of Watson Assistant, click "Build Custom Extension" then "Next".
- Name the extension "NeuralSeek" and give a brief description. Click "Next".
- Open another browser tab and navigate to NeuralSeek -> "Integrate" tab -> Download "Custom Extension OpenApi File".
- Navigate to Watson Assitant browser tab. Upload NeuralSeek OpenApi file into Waston Assiatant. Click "Next" then "Finish".
- On the new "NeuralSeek" extension tile that appears, click "Add", "Add", then "Next".
- On the authentication screen, select "API key auth", and enter your api key as shown in NeuralSeek "Integrate" page.
- Click "Next", "Finish", then "Close".
Create WA action to trigger NeuralSeek Search
- On the "Actions" tab of Watson Assistant, click "Create Action". Choose "Quick Start with templates", then select "NeuralSeek Starter Kit" -> "Select this starter kit" -> "Add templatess".
- Open the "NeuralSeek Search" action.
- In step 3, in the "And then" section, click "edit extension",
- in the Extension dropdown select "NeuralSeek"
- in the Operation dropdown select "Seek an answer from NeuralSeek".
- Set parameters.
- Set
question
Toquery_text
. - Set
options.language
to Enter text ->"en"
-> "Apply"
- Set
- "Save" and "Close" action
No action matches Setup
- Navigate to "All items" -> "Set by assistant" -> "No action matches".
- Click on the "No action matches" action and delete the existing step 1 and step 2.
- "New Step". In the "And then" section, select "go to a subaction" -> select "NeuralSeek Search" in the dropdown options -> "Apply".
- "Save" and "Close"
NeuralSeek Advanced Features
- Enabled Topic Continuity through setting up session_id in WA: in the action step where we call out to use NeuralSeek extension, set parameters
user_session.system.session
To Expression$system.session_id
- Prompt Engineering:
- Enabled Consistent Answer Format in through
- Within NeuralSeek: navitage to Configure > prompt engineering > Enabled
- Enter
When possible, answer the question in bulleted list form.
- Lower variance
- Enabled Consistent Answer Format in through
- Enabled Searching in different collections
- in the Watson Assistant action step where we call out to use NeuralSeek extension, set parameters options.filter To
collection_id:"<collection-id>"
- collection-id could be found in Watson Discovery: navigate to a collection and copy the url after
collections/
- in the Watson Assistant action step where we call out to use NeuralSeek extension, set parameters options.filter To
- Enable multilingual capability: set parameters options.language
- Spanish:
es
- Match input:
xx
- Spanish: