Skip to main content
The orchestrate knowledge-bases import command enables you to import the knowledge bases that you create in your active environment. To import a knowledge base, run this command in the ADK CLI and set the path of the file that contains your knowledge base configurations.
BASH

Connecting to external knowledge base providers

In some cases, to connect to external knowledge base providers, such as Milvus or Elasticsearch, you must provide credentials to authenticate to these services. To do that, you must create a new connection and provide the connection in the command by using the --app-id or -a flag. When creating the connection, use --component knowledge to indicate that the connection is for a knowledge base, and --category to specify the provider type. The supported values for --category are: The URL (including the port) for your external content source must be set on the connection using the --server-url flag of the connections configure command. Use --safe to add a confirmation step before updating or importing a Knowledge Base that already exists.
BASH
When creating or updating a knowledge base, the system validates that it can connect to your content source using the provided credentials and --server-url. If the connection cannot be established, you will receive a Connection credential validation failed: error. Verify that your --server-url and credentials are correct before retrying.
If your service requires a different type of authentication, see Connections for more authentication options.