Skip to main content
Manage the knowledge bases in your active environment.

Getting knowledge base status

To get the status of an existing knowledge base, run the following command. For built-in knowledge bases, this will include a Ready property, which denotes whether your index has been successfully created and the knowledge base is ready to use:
BASH
orchestrate knowledge-bases status --name my-base-name

Updating knowledge base

To update a knowledge base, run the import command again using the same knowledge base name as the knowledge base you want to update.
BASH
orchestrate knowledge-bases import -f <path to knowledge base file that you want to update>

Removing knowledge base

To remove an existing knowledge base, run the following command:
BASH
orchestrate knowledge-bases remove --name my-base-name

Listing knowledge bases

To list all knowledge bases, run the following command:
BASH
orchestrate knowledge-bases list

Exporting knowledge bases

Use the orchestrate knowledge-bases export command to export a knowledge base specification file YAML configuration from your active environment.
BASH
orchestrate knowledge-bases export -n <knowledge-base-name> -o <output-path>.yaml
Note:Documents cannot be exported as they are not stored in a non-indexed state by the watsonx Orchestrate platform.