Get Datasource
Fetch a knowledge-base datasource by ID.
Type
kb.get-datasourceFolder
kbChannels
Any
Pipe
Value
Scope
Any
Get Datasource (canvas label KB Get Datasource) loads one datasource from a knowledge base, including processing status and progress.
Configure
| Setting | Description |
|---|---|
| Knowledge base | Store that owns the datasource (required) |
| Datasource ID | Datasource to load (required) |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after the datasource is loaded |
Pipe schema
The next block reads this on the data pipe (pipe.value). The value is a datasource object:
| Key | Type | Description |
|---|---|---|
id | text | Datasource id |
type | text | structured or unstructured |
content | text | Stored content reference |
addedAt | text | When it was added |
status | text | Processing status |
processedAt | text | When processing finished, if done |
error | text | Error message when processing failed |
progress | text | Progress text while processing |
file | text | File id when set |
url | text | Source URL when set |
config | object | Extra ingestion settings |
Use case
- Wait until an Add Datasource or Refresh Datasource job finishes before querying.
- Surface
errorin chat when ingestion fails.