Configuring Knowledge Transformer
Configure Knowledge Transformer by using zassist to set the API URL and authentication credentials, and selecting your preferred LLM.
Before using Knowledge Transformer, you must configure the API connection and select the LLM that Knowledge Transformer uses to process your documents. Ensure 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.
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
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.pemThe CLI will continue to use your OS trust store and will add the certificates from this PEM bundle.
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.