Skip to main content

NeuralSeek

Pre-Requisites

High level Steps

Setup NeuralSeek and integrate with Watson Discovery

If you initiated a Lite plan

  1. Click on the "Launch NeuralSeek" button.
  2. You'll land on the "Configure" tab.
  3. Enter the name of the company or organization that NeuralSeek will be generating answers for. Click "Next"
  4. 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
  5. For Virtual Agent Type, select "Watson Assistant Type". Click "Next". Click "Next".
  6. 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:
  • 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

  1. In Watson Assistant, on the "Integrations" tab of Watson Assistant, click "Build Custom Extension" then "Next".
  2. Name the extension "NeuralSeek" and give a brief description. Click "Next".
  3. Open another browser tab and navigate to NeuralSeek -> "Integrate" tab -> Download "Custom Extension OpenApi File".
  4. Navigate to Watson Assitant browser tab. Upload NeuralSeek OpenApi file into Waston Assiatant. Click "Next" then "Finish".
  5. On the new "NeuralSeek" extension tile that appears, click "Add", "Add", then "Next".
  6. On the authentication screen, select "API key auth", and enter your api key as shown in NeuralSeek "Integrate" page.
  7. Click "Next", "Finish", then "Close".

Create WA action to trigger NeuralSeek Search

  1. 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".
  2. Open the "NeuralSeek Search" action.
  3. 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".
  4. Set parameters.
    • Set question To query_text.
    • Set options.language to Enter text -> "en" -> "Apply"
  5. "Save" and "Close" action

No action matches Setup

  1. Navigate to "All items" -> "Set by assistant" -> "No action matches".
  2. Click on the "No action matches" action and delete the existing step 1 and step 2.
  3. "New Step". In the "And then" section, select "go to a subaction" -> select "NeuralSeek Search" in the dropdown options -> "Apply".
  4. "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:
    1. Enabled Consistent Answer Format in through
      • Within NeuralSeek: navitage to Configure > prompt engineering > Enabled
      • Enter When possible, answer the question in bulleted list form.
    2. Lower variance
  • 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/
  • Enable multilingual capability: set parameters options.language
    • Spanish: es
    • Match input: xx

References