Manage knowledge bases¶
Create, query, update, or delete knowledge bases in a workspace. This page covers the knowledge base itself; use the relevant task pages to add files and data sources, adjust segments, or maintain semantic entries.
Prerequisites¶
Prepare credentials that can access the target workspace. For service endpoints, authentication, and general request formats, see Make your first AI Studio API call.
Before creation, updates, or deletion, confirm the target knowledge base and its ID in the knowledge-base list or details.
Call sequence¶
First list knowledge bases to decide whether to use an existing knowledge base or create a new one.
At creation, choose the appropriate create action based on whether you provide data sources at the same time. Retain the returned knowledge base ID after creation.
To adjust an existing knowledge base, first get knowledge base details, then update the target knowledge base.
Before deletion, query details again and confirm deletion conditions and impact on the action page.
API operations¶
Create and discover knowledge bases¶
Task |
Use it when |
|---|---|
Create a knowledge base without data sources first. |
|
You identified the data sources to connect during creation. |
|
Create a knowledge base through the standard path. |
|
Select a target knowledge base or confirm creation. |
|
Understand available knowledge bases by tag. |
View and maintain knowledge bases¶
Task |
Use it when |
|---|---|
Get current information, or confirm the target before updating or deleting. |
|
You have the knowledge base ID and need to modify its configuration. |
|
Confirm impact and conditions on the action page before deletion. |
Confirm the result¶
After creation or an update, use Get knowledge base details to confirm current information for the target. To confirm that it appears in the available scope, use List knowledge bases. After submitting deletion, also use the list or details to confirm whether the object remains available.
Limitations and notes¶
Deletion affects the target knowledge base. Before proceeding, confirm conditions and results in Delete a knowledge base.