# Documents and segments

Inspect documents and source artifacts, then create, update, enable, disable, delete, or re-vectorize segments. Use the selected action page to identify the source, document, or segment to manage.

## Choose a task

| Task | Description |
| --- | --- |
| [Inspect document segments and versions](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/get-document.html.md) | Query the current segment version, index version, and segment content of a source document. |
| [Read a source file](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/preview-source-file.html.md) | Preview the original files associated with the knowledge base as a binary stream. |
| [Read parsed image artifacts](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/preview-processed-artifact.html.md) | Preview the products generated by knowledge base file parsing, such as parsing images, in a binary stream. |
| [Import the initial segments](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/import-initial-segments.html.md) | Import initial segments against the current version baseline; mismatches reject the write. |
| [Add a content segment](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/create-segment.html.md) | Creates a segment in the source's current segment version. |
| [Edit segment content](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/update-segment.html.md) | Updates the contents of the specified section. |
| [Control segment retrieval eligibility](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/set-segment-enabled.html.md) | Update the enabled status of the specified segment and control whether the segment participates in retrieval. |
| [Remove a segment](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/delete-segment.html.md) | Irreversibly remove a segment from the source’s current version. |
| [Recompute segment vectors](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/revectorize-data-source.html.md) | Submit segment vectorization, then inspect source or task state to confirm the result. |
| [Select the current segment version](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/resource-center/knowledge-bases/set-current-segment-version.html.md) | Switch an existing segment version to the source current version. |
