# 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](https://omnifabric.cloudsigma.com/docs/developer/quickstart/index.html.md).

Before creation, updates, or deletion, confirm the target knowledge base and its ID in the knowledge-base list or details.

## Call sequence

1. First [list knowledge bases](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/list-knowledge-bases.html.md) to decide whether to use an existing knowledge base or create a new one.
2. 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.
3. To adjust an existing knowledge base, first [get knowledge base details](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/get-knowledge-base.html.md), then update the target knowledge base.
4. 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 an empty data-side knowledge base](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/create-empty-knowledge-base.html.md) | Create a knowledge base without data sources first. |
| [Create a knowledge base with data sources](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/create-knowledge-base-with-sources.html.md) | You identified the data sources to connect during creation. |
| [Create a knowledge base](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/create-knowledge-base.html.md) | Create a knowledge base through the standard path. |
| [Query knowledge bases](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/list-knowledge-bases.html.md) | Select a target knowledge base or confirm creation. |
| [Query knowledge base tags](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/list-knowledge-base-tags.html.md) | Understand available knowledge bases by tag. |

### View and maintain knowledge bases

| Task | Use it when |
| --- | --- |
| [Query knowledge base details](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/get-knowledge-base.html.md) | Get current information, or confirm the target before updating or deleting. |
| [Update a knowledge base](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/update-knowledge-base.html.md) | You have the knowledge base ID and need to modify its configuration. |
| [Delete a knowledge base](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/delete-knowledge-base.html.md) | Confirm impact and conditions on the action page before deletion. |

## Confirm the result

After creation or an update, use [Get knowledge base details](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/get-knowledge-base.html.md) to confirm current information for the target. To confirm that it appears in the available scope, use [List knowledge bases](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/list-knowledge-bases.html.md). 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](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/delete-knowledge-base.html.md).

## Next steps

- [Manage data sources and documents](https://omnifabric.cloudsigma.com/docs/developer/api/ai-studio/knowledge-bases/data-sources-documents.html.md)
- [Manage segments and processing tasks](https://omnifabric.cloudsigma.com/docs/developer/api/ai-studio/knowledge-bases/segments-processing.html.md)
- [Manage semantic entries](https://omnifabric.cloudsigma.com/docs/developer/api/ai-studio/knowledge-bases/semantic-entries.html.md)
