IBM / watson-discovery-food-reviews

Combine Watson Knowledge Studio and Watson Discovery to discover customer sentiment from product reviews
https://developer.ibm.com/patterns/get-customer-insights-from-product-reviews/
Apache License 2.0
36 stars 44 forks source link

On Cloud Pak for Data Can Watson Knowledge Studio can be connected to Watson Discovery #83

Open maazansari11 opened 3 years ago

maazansari11 commented 3 years ago

Q.1 Can this food-reviews project executed on Cloud Pak for Data on Prem? Q.2 If Yes, then How .env file can be created, what parameters I can pass in .env file? Q.3 If No, then Can you please provide me with Sample Apps with Cloud Pak for Data on Watson Discovery and Watson Knowledge Studio to Watson Discovery Service?

I am deploying on My Local Machine. I am using IBM Cloud Pak for Data on Prem - 3.0.1 Enterprise Example:- (This is the environment for IBM Cloud)

Copy this file to .env and replace the credentials with your own before starting the app.

Watson Discovery DISCOVERY_URL= DISCOVERY_IAM_APIKEY= DISCOVERY_ENVIRONMENT_ID= DISCOVERY_COLLECTION_ID=

Watson Knowledge Studio WKS_MODEL_ID=

Run locally on a non-default port (default is 3000) PORT=3000

As on Cloud Pak for Data on Prem there is no option to Deploy Knowledge Studio Machine Learning model , ONLY we can export .zip file Knowledge Studio Machine Learning Model to Watson Discovery Machine Learning Model . Therefore WKS_MODEL_ID cant be created. Similarly DISCOVERY_IAM_APIKEY , DISCOVERY_ENVIRONMENT_ID , DISCOVERY_COLLECTION_ID parameters cant be created on Cloud Pak for Data on Prem.

Only Parameters I have :- While Launching Watson Discovery - In Access Information

  1. URL
  2. Bearer Token So with this parameter can we create .env file or some more parameter should I pass?
rhagarty commented 3 years ago

@maazansari11 - sorry, but this code pattern was created and tested on IBM Cloud only.

The Discovery service on Cloud Pak for Data has an updated UI and it uses a newer version of the API. Although the Discovery concepts are similar, it would require quite a bit of work to upgrade.

There are currently no plans to update this code pattern to work on CP4D.