Configuring Knowledge Transformer
Configure Knowledge Transformer by using zassist to set the API URL and authentication credentials, and selecting your preferred LLM.
You must also configure the API connection and select the LLM that Knowledge Transformer uses to process your documents.
Ensure that you have Knowledge Transformer enabled (see Enabling Knowledge Transformer), and that you have zassist installed (see Installing zassist). You can use the zassist config transform command to set an API URL, API keys, and set the CA certificates, for persistence across sessions. Setting the API URL is optional because a default is provided. However, configuring API key authentication is required for secured deployments.
Select the LLM that Knowledge Transformer uses to process your documents. You can choose from watsonx models or any LLM with an OpenAI-compatible API endpoint. Results generated by Knowledge Transformer might vary between different LLM models.
Get the API URL
TRANSFORM_URL=https://$(oc get route wxa4z-transform -n wxa4z-zad -o jsonpath='{.spec.host}')
echo $TRANSFORM_URLUse this URL when configuring the zassist CLI in the
following sections.http://localhost:8000/.Set the API URL
zassist config transform set-url [api-url]This
command will save the API URL to the config file located in
~/.zassist/config.json, and will take effect immediately. The default API URL
is http://localhost:8000/.export TRANSFORM_API_URL="http://localhost:8000"Set an API key
For secured deployments, an API key must be provided to authenticate all requests for Knowledge Transformer. For more information on how to create the API key, see Knowledge Transformer Secret.
zassist config transform set-api-key [api-key]export TRANSFORM_API_KEY="api-key"zassist config transform delete-api-keySet Trusted CA Certificates
zassist config transform set-ca-cert /path/to/org-ca-bundle.pemexport WXA4Z_TLS_VERIFY=false.View current configuration
The API URL and CA certificate bundles are saved to a config file, located in ~/.zassist/config.json.
zassist config transform showThe API key is stored in the OS credential store or can be read from the environment variable TRANSFORM_API_KEY.