# Browse and curate a source's documents

Read a knowledge source's document list, preview how a document was chunked, correct its metadata, re-index or delete one document, and add files.

A knowledge source's **Documents** tab lists every document its syncs have indexed, with the status, size and chunk count of each. Use it to check that content actually landed, see how a document was cut into chunks, curate the metadata that searches can filter by, and fix or remove one document without touching the rest of the source.

**Who can use it:** the **Admin** role or the **Knowledge Admin** grant, in a tenant licensed for knowledge. The tab is on a source's detail page in Knowledge Management, in the Control Room. Editing metadata also needs the knowledge engine's **Allow curation** setting to be on.

Video: Browse and curate a source's documents (3:56), https://katonicdocsmedia.blob.core.windows.net/docs/documents/47328a66909a/index.html; on YouTube: https://www.youtube.com/watch?v=sbQeSWfki1k

## Prerequisites

- A source that has synced at least once. Until then the tab says **No indexed documents yet - sync this source to index content**.
- For metadata, **Enable metadata features** switched on in the engine's **Document metadata** settings; off hides the **Metadata** column and every tagging control. See [Tune the knowledge engine](/knowledge/knowledge-bases/settings).

## Open a source's documents

  
**Step 1. Open the tab**

In the Control Room, open **Knowledge**, select the source's row, then select **Documents**.

    ![A source's detail page on the Documents tab: the header with Sync now, Reindex and Delete, the Documents, Chunks, Last Sync and Schedule tiles, the tabs Overview, Documents, Domain graph, Access, Runs and Logs, the status filter with the document count and Tag every document in this source, then a table with Document, Type, Status, Metadata, Chunks, Size and Processed columns and four icon controls at the end of each row.](https://docs.katonic.ai/img/knowledge/knowledge-bases/documents/source-documents-tab.png)
*A source's Documents tab lists every indexed document with its status, metadata, chunk count and size. The icons on each row re-index, preview, download or delete that one document.*

  
**Step 2. Filter and page**

**Filter documents by status** offers **All statuses** with the document count, then **Completed**, **Processing**, **Pending**, **Failed** and **Access denied**; the count beside it follows the filter. The table shows 25 documents per page with **Previous** and **Next** underneath. **No documents match this filter** means the filter is empty, not the source.

## Read the table

The columns are **Document**, **Type** (the content type), **Status**, **Metadata**, **Chunks**, **Size** and **Processed** (when the document was last processed).

- The status pill reads completed, processing, pending, failed or **Access denied**. A failed or access-denied row shows the recorded reason under the pill; hover to read it in full. Access denied means the connector's account can no longer read the item, so its content was removed from the index; it is indexed again if access returns.
- **Chunks** is how many chunks, the passages that search retrieves, the document was split into. A completed document with 0 chunks had no text to extract, an image-only page for example, and shows the reason under its status.
- The icons at the right of each row are **Re-index this document** (the circular arrows), **Preview chunks** (the eye), **Download source file** (the download arrow) and **Delete this document** (the bin). The eye appears only on completed documents with at least one chunk; re-index and delete are unavailable while a document is processing.

## Inspect a document

  
**Step 1. Preview the chunks**

Select **Preview chunks**. A dialog headed **Chunks** and the document's title shows ten chunks at a time. **First**, **Previous**, **Next** and **Last** move between pages of ten; a document with more than 50 chunks also gets **Go to chunk #**. Each chunk shows its number, its length in **chars**, its heading path, **Open source** when the document has an address, and **Show full chunk**, which expands the excerpt.

    ![The chunk preview dialog for the Deployment runbook: the heading Chunks and the document's title, Close, a line stating which chunks and pages are shown out of the total, the buttons First, Previous, Next and Last, and the chunks grouped by page, each showing its number, its length in chars, its heading path such as Deployment runbook > Rolling out > Staging, an Open source link, Show full chunk and its text.](https://docs.katonic.ai/img/knowledge/knowledge-bases/documents/document-chunk-preview.png)
*Preview chunks shows a document ten chunks at a time. Each block names the chunk's number, length and heading path above its text, so you can see where the document was cut.*

    **This document produced no chunks, so there is nothing to preview.** is a real result. A notice that the chunk store could not be read is not, and does not mean the document is empty; select **Retry**.

  
**Step 2. Download the file**

**Download source file** saves the stored original under the document's title. **Couldn't download file.** means it could not be fetched.

## Curate metadata

The **Metadata** cell shows the first two keys and values the connector extracted, then **+N more**, or **None**. Select the cell (**View and edit metadata for this document**, or **Show metadata for this document** when curation is off) to open the **Document metadata** panel under the row; **Close** or Escape shuts it.

![The Documents tab of the Engineering Wiki source with the Document metadata panel open beneath the Deployment runbook row: the panel title and the document's name with Close, one row per metadata key, department, owner, state and path, each with its value, a from connector chip and Edit, then Add a metadata key and the note that Revert restores the connector value.](https://docs.katonic.ai/img/knowledge/knowledge-bases/documents/document-metadata-panel.png)
*Select a row's Metadata cell to open the Document metadata panel under it. Each value says whether it came from the connector or was edited; Edit changes it in place and Revert returns to the connector's value.*

- Each key shows its value, a chip reading **from connector** or **edited · kept on re-sync**, **Edit**, and for edited keys **Revert**, which restores the connector's value. Your edits are stored apart from the connector's values, so no re-sync overwrites them.
- The input follows the field type defined in the engine's Settings: a dropdown, checkboxes, a number, a date, or free text for an undefined key. Values hold up to 256 characters and keys up to 64.
- Fields defined for your organisation but empty on this document are listed under **Defined for this organisation, not set on this document:** with **Set**. **Add a metadata key** adds a new key and value.
- **Tag every document in this source**, beside the status filter, sets one key and value on every document after **Continue** and **Apply to all**. Existing values of that key are replaced, and the write lands on every document or on none.

## Fix a document

- **Re-index this document** re-embeds that document in place; on a failed document it reads **Retry indexing this document**. A message starting **Re-indexing** confirms it.
- **Delete this document** asks you to confirm and warns that it permanently removes the document, its passages from the search index and its stored file. **Document deleted** confirms it and the source's counts update.

## Add files

For a File Upload source the tab also has **Add files** (**Upload more files into this source**) with a hint that starts **Supported:** and names the accepted types and the per-file size cap in force. The shipped defaults are PDF, DOCX, PPTX, XLSX, CSV, JSON, HTML, TXT and Markdown at 100 MB; image types join the list when image OCR is on, and your organisation's own allowlist and cap replace the defaults. Rejected files are named with the reason; accepted files appear as pending and are indexed.

## Verify

Set the filter to **Completed**: the count matches what you expect, newly added files move from pending through processing to completed, and **Preview chunks** shows sensible cuts. An edited key shows **edited · kept on re-sync** and keeps its value after the next **Sync now**.

## Troubleshooting

- **No indexed documents yet - sync this source to index content**: no sync has run. Select **Sync now** and follow it in [Follow sync runs and logs](/knowledge/knowledge-bases/runs-and-logs).
- A document reads **failed**: read the reason under the pill, then **Retry indexing this document**. If many fail, read the **Logs** tab.
- **Access denied**: the connector's account lost access to the item. Restore it in the source system and sync again.
- No **Metadata** column, or no **Edit** in the panel: **Enable metadata features** or **Allow curation** is off in the engine settings.
- **Could not save the metadata change.**, or a key rule such as **Use letters, numbers, dots, dashes or underscores only.**: fix the value and save again.

## Related

- [Follow sync runs and logs](/knowledge/knowledge-bases/runs-and-logs)
- [Connect sources](/knowledge/knowledge-bases/connect-sources)
- [Search and test](/knowledge/knowledge-bases/search-and-test)
- [Tune the knowledge engine](/knowledge/knowledge-bases/settings)

Source: https://docs.katonic.ai/knowledge/knowledge-bases/documents
