Where people manage what an agent can search: uploads and connectors, how far indexing has got, how many chunks each source holds, when it last synced, and why one failed. Each row shows one status signal, so a red badge always means a source needs you.
Examples
One signal per status
Ready is plain text. Indexing is a progress bar. Queued and paused are a grey badge, and only a failed source gets a red one, with the reason and a Retry underneath. Rows are never tinted and never carry a second dot.
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- sources
KnowledgeSource[]- id, name, kind (upload or connector), connector (a name with a logo in the icon set), detail, status, progress (0 to 1), chunks, lastSyncAt, error.
- status
"ready"|"queued"|"indexing"|"failed"|"paused"- Re-sync is disabled while queued or indexing. Indexing without a progress value shows an indeterminate bar.
- connectors
string[]- Default
[] - Names in the Add source menu. Logos come from the icon set (Notion, Google Drive, GitHub, Slack, S3, Postgres, Jira, and the other tool logos); unknown names get a plain glyph.
- onUpload / accept
(files: File[]) => void / string- Adds Upload files to the menu and opens the file picker. Omit it to hide Upload.
- onConnect
(connector: string) => void- A connector was picked. Start your own auth flow.
- onResync / onRetry
(id: string) => void- Re-sync icon on every row; failed rows swap it for Retry.
- onRemove
(source) => void- Adds Remove source to the row menu. Confirm in your own dialog.
- history
number[]- Total chunks per day, oldest first, drawn as a sparkline in the header.
- now
Date|number|string- Default
now - Fix the clock so 'synced 2 h ago' is stable in tests and docs.
| Prop | Type | Default | Description |
|---|---|---|---|
| sources | KnowledgeSource[] | - | id, name, kind (upload or connector), connector (a name with a logo in the icon set), detail, status, progress (0 to 1), chunks, lastSyncAt, error. |
| status | "ready" | "queued" | "indexing" | "failed" | "paused" | - | Re-sync is disabled while queued or indexing. Indexing without a progress value shows an indeterminate bar. |
| connectors | string[] | [] | Names in the Add source menu. Logos come from the icon set (Notion, Google Drive, GitHub, Slack, S3, Postgres, Jira, and the other tool logos); unknown names get a plain glyph. |
| onUpload / accept | (files: File[]) => void / string | - | Adds Upload files to the menu and opens the file picker. Omit it to hide Upload. |
| onConnect | (connector: string) => void | - | A connector was picked. Start your own auth flow. |
| onResync / onRetry | (id: string) => void | - | Re-sync icon on every row; failed rows swap it for Retry. |
| onRemove | (source) => void | - | Adds Remove source to the row menu. Confirm in your own dialog. |
| history | number[] | - | Total chunks per day, oldest first, drawn as a sparkline in the header. |
| now | Date | number | string | now | Fix the clock so 'synced 2 h ago' is stable in tests and docs. |
Screen readers get each row's status in words, a labelled progress bar while indexing, and a polite announcement when a source finishes or fails. The block never starts work itself: your app owns indexing and passes the new state back.
When to use
When to use
- Where people manage what an agent can search: uploads, connectors, indexing progress and failures.
- A settings page for a RAG product that needs re-sync and retry per source.
When not to use
- Edits an agent made to files in a run: use Inline Diff.
- Memory the agent wrote itself: use Agent Memory.
- Spend and quota against a plan: use Usage Meter.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Knowledge Sources to my app and wire it to my own data.
- I need where people manage what an agent can search: uploads, connectors, indexing progress and failures. Set that up with the Knowns UI Knowledge Sources.
- Which Knowledge Sources props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "knowledge-sources" }) and search_docs({ query: "knowledge sources" }). Pro props, full examples and source come back once your license key is in the MCP config.