Testing your ZAssistantDeploy connection

After you configure the ZAssistantDeploy service, you may want to verify that data from your uploaded documents is fetched and sent back to watsonx Assistant for Z to enhance agent responses. For more information about the agents, see AI agents and services in IBM watsonx Assistant for Z.

About this task

Follow these steps to verify that 220 IBM indices are loaded in OpenSearch:

Procedure

  1. Set the OPENSEARCH_PASSWORD variable:
    OPENSEARCH_PASSWORD=$(oc -n wxa4z-zad get secret opensearch-creds -o go-template='{{.data.password | base64decode }}')
    ``
  2. Port-forward the OpenSearch service to https://localhost:9200:
    oc -n wxa4z-zad port-forward service/wxa4z-opensearch-cluster 9200
    
  3. Run the following command to retrieve the total number of IBM indices:
    curl -sk -u admin:$OPENSEARCH_PASSWORD "https://localhost:9200/_cat/indices" | grep ibm_docs | wc -l