key_value connections. Use --kind key_value or --kind kv for each source. Other OAuth connection kinds are not validated end-to-end for knowledge base content sources.
A connector-backed knowledge base does not upload document files through the ADK. The knowledge base specification identifies the external system in content_source and identifies the source paths in documents. During a sync, watsonx Orchestrate retrieves the files, converts and chunks their content, and indexes the chunks in the built-in vector store. To customize the embedding model and the chunking parameters, use the vector_index field in the specification.
The source documents must meet these requirements:
- Give each file a unique name.
- Include no more than 100 files in one knowledge base specification.
- Limit each
.xlsxfile to 1 MB. - Limit each
.docx,.pdf, and.pptxfile to 25 MB. - Limit each
.csv,.html, and.txtfile to 5 MB.
Before you begin
- Register an application or service account with your content provider.
- Collect the required credentials from the provider.
- If you use Developer Edition, start the server with connector support:
Required credentials
Each third-party source requires a different set of credentials from its own developer console or app registration. Pass each credential as a separate--entries "<key>=<value>" option on orchestrate connections set-credentials.
Connecting to a third-party content source
Create a connection
--env live.Define the knowledge base
content_source and documents:/ to a path to identify a folder — the sync ingests files directly in that folder but not files in its subfolders.Import and perform the initial sync
--sync to update the specification and sync its content:Check status and sync content
sync_state, sync_state_msg, and last_sync_stats for a connector-backed knowledge base.--sync.Start an on-demand sync after you change files in the source or update the document paths:Enforce document permissions at retrieval
By default, every user of an agent can retrieve content from every document in the knowledge base. For a connector-backed knowledge base, you can instead restrict retrieval to the documents that each user is authorized to see in the source system. When you turn on access control list (ACL) based retrieval, watsonx Orchestrate captures the document-level access controls when it ingests files from the source. At query time, it returns content only from the documents that the requesting user can access. To turn on ACL-based retrieval, setacl_retrieval.enabled to true in the conversational_search_tool section of the knowledge base specification:
false, which returns content from all documents in the knowledge base to every user of the agent.ConversationalSearchConfig:
Remove the knowledge base and connection
Remove the knowledge base:Examples
- Box
- OneDrive

