Connector knowledge sources
How a connector reads documents from an external system into a Knowledge Engine module on a schedule.
Enterprise module
Connectors are an enterprise module, and a knowledge source needs the Knowledge Engine service as well. If either is off for the workspace, no source runs.
A source is something a connector package can read as documents: the pages of a web site, the files under a storage prefix, the rows of a table. You bind a source to a Knowledge Engine module of the same project and choose how often to read it. New and changed documents are added to the module. What disappeared at the source is removed. Agents then search the module like any other Knowledge Engine module.
Not every connector offers a source. A connector shows the Knowledge capability when its package defines one. If the current settings offer none, the tab says This connector offers no source with its current settings.
Add a source
- Open Build → Connectors, open the connector, then open its Knowledge tab.
- Select Add source.
- Fill in the form, then select Add, or Add and sync to start the first run at once.
The connector must be enabled and must have a connected account. A source reads with the connector's account. Without one the tab says Connect an account first: a source reads with the account of the connector.
The form has four sections.
| Section | What you set |
|---|---|
| Source | Which source of the package to read, and a Name. Left empty, the source's own name is used. The form says whether the source reads Only changes are read after the first run. or Everything is read on every run. |
| Filters | Which part of the source to read. The filters come from the package: a site address, a path prefix, a table. A source without filters says This source has no filters. |
| Target and schedule | The Knowledge Engine module that receives the documents, the Schedule, and Scheduled runs are on. |
| Permissions | Who sees what the source adds (below), and When the source is removed. |
Choose the knowledge base
The module list shows the active Knowledge Engine modules of the project. If the list cannot be read you can type the module key. If the project has no active module, create one in Knowledge Engine first. The module cannot be changed after the source exists: Delete the source and add it again to use another one. The source must target a module of the same project.
Schedule
| Schedule | Interval |
|---|---|
| Manual | Only when you select Sync now. |
| 15 min | 15 minutes |
| 1 hour | 60 minutes |
| 6 hours | 360 minutes |
| Daily | 1440 minutes |
The interval is counted from the start of the last run. A package can set a minimum interval. Shorter schedules are then off, and the form says This source allows a run at most every {minutes} minutes: shorter schedules are off. A new source starts with the shortest of 1 hour, 6 hours or daily that the package allows, or Manual if none fits. Turn off Scheduled runs are on to stop scheduled runs and still sync by hand.
Who sees the documents
What a document's readers see depends on whether the package brings the document's permissions.
- The source sends permissions. A package that reads access control sends, with each file, who may read it. SharePoint does when Read permissions is on (SharePoint). In a knowledge base with access control on, each document keeps the permissions it has in the system: only the people and groups allowed to read it there read it in the knowledge base (people are matched by their e-mail or sign-in name). Knowledge Engine admins read everything. In a knowledge base with access control off, the permissions are kept but not applied, so everyone with access sees every document until access control is switched on for it. The form says which of these applies.
- The source sends none. The other packages, and SharePoint with Read permissions off, carry no document-level permissions: everyone with access to the module sees every document the source adds. Before you can add such a source you confirm this: I understand: everyone with access to the module sees every document this source adds. Bind it only to a module whose readers may see all of that source.
In the knowledge base's permission editor, the permissions that come from a source are shown read-only under Synced from a connected source: These permissions mirror the source and change only there. To change who may read a synced document, change it in the system and let the next run bring it.
Agents and flows stop reading through such a connector. The connector's actions run with its own account, which sees every document whatever the permissions. So while one of its sources sends permissions into a knowledge base with access control on, the connector offers agents none of its read actions and not its MCP server, and flows none of its read nodes. Its other actions stay, and ask before they run like any action that is not read-only. A read call made anyway is refused with "The connector "…" feeds a knowledge base with access control, so neither agents nor flows read through it … Search the knowledge base instead." The check runs when the tool is built and on every read call, so turning access control on later takes effect too; turning it off, or removing the source, gives the read actions back.
When the source is removed
When the source is removed sets the default for deleting the source: Documents stay or Documents are deleted. You can change it later, and the delete dialog asks again.
What is pulled and how it becomes a document
Each item the package lists becomes one document in the module. Cognipeer converts it to text before the module chunks and embeds it.
| Item content | Result |
|---|---|
| Markdown or plain text | Used as it is. |
| HTML | Converted to Markdown. The whole page is kept, tables and lists included. |
A file of a text type (.md, .markdown, .txt, .csv, .json, or a text/* type) | Read as text. |
| An HTML file | Converted to Markdown. |
| Any other file (PDF, Word, Excel, PowerPoint and more) | Converted to text by the Knowledge Engine's extraction engine, the same one that reads files you upload. The target module's OCR settings apply: with Read scanned pages (OCR) on, scanned PDFs are read too, and with Also read images, the text in pictures. |
A file is recognised as a PDF by its content, not its name: a PDF that a package names .docx is read as a PDF.
Cognipeer skips an item and counts it as skipped when it has no content, when its text is blank, or when a file is larger than 20 MB. An item whose content cannot be converted counts as failed.
The document name is the item's title, cut to 255 characters. If there is no title, the file name or item id is used. Every document also carries metadata: source (always connector), connectorId, connectorKey, sourceId, sourceKey, externalId, title, and revision and sourceUrl when the package gives them. The package may add its own flat values, at most 32 keys. Text values are cut to 512 characters, and lists to 32 entries of 128 characters. These keys are reserved and never overwritten: the chunk fields the Knowledge Engine writes itself and the keys above.
Sync runs
Select Sync now on a source, or wait for its schedule. A run is queued and then runs on a Cognipeer node. While a run is queued or running, the lists refresh every two seconds.
A run is either full or incremental. The package decides: an incremental source reads only what changed since the last checkpoint, and a full one reads everything each time. A long run is split into segments, at most 12 per run. If a run stops before it has read everything, it ends Partly done and the next run continues from the checkpoint. If the vendor asks Cognipeer to wait more than 60 seconds, the run also ends there.
For each item Cognipeer compares the document with what it already has. The counters of a run are:
| Counter | Meaning |
|---|---|
| listed | Items the source listed. |
| added | New documents. |
| updated | Documents whose content changed. |
| unchanged | Items already in the module and not changed. |
| deleted | Documents removed because the item is gone from the source. |
| skipped | Items not ingested (no content, blank, too large). |
| failed | Items that could not be ingested. |
The source list shows them as +added ~updated −deleted · unchanged.
If the first three documents of a run all fail to ingest, the run stops. The module is then not taking documents at all.
Run statuses
Select a source to see its newest runs in Runs: status, who started it (Manual, Schedule or On add), start time, duration and result.
| Run status | Meaning |
|---|---|
| Queued | Waiting for a worker. |
| Running | Reading. Use Cancel run to stop it. |
| Succeeded | Finished with no failed item. |
| Partly done | Finished or stopped early, with failed items or unread items left. The message says why. |
| Failed | Stopped by an error. The run shows the error code and message. |
| Canceled | You canceled it. |
| Held | Stopped before removing documents. See below. |
A run that stops answering is ended as failed (Interrupted, or The run did not start if it never started).
Source statuses
| Source status | Meaning |
|---|---|
| Idle | Nothing is running. |
| Queued, Running | A run is waiting or running. |
| Needs approval | The last run is held and waits for an admin. |
| Error | The last run failed. |
| Paused | A condition blocks the source. The reason is shown. |
A source is paused, and scheduled runs skip it, while one of these is true. It runs again by itself when the cause is fixed.
| Paused reason | What to do |
|---|---|
| The module was not found | The module was deleted. Delete the source and add it for another module. |
| The module is not active | Activate the module. |
| The module is re-indexing | Wait for the re-index to finish. |
| The account needs attention | Connect the account again on the connector. |
| The connector is disabled | Enable the connector. |
| The connector package is not installed | Install the package again. |
When a run is held
When the source gives a complete listing and many documents are no longer in it, Cognipeer does not remove them by itself. If more than 5 documents and more than 20% of the source's documents are gone, the run ends Held with the message Run stopped: {count} documents ({percent}%) would be removed from {kb}. A bulk move at the source can cause this. Below that, the missing documents are removed during the run.
An admin decides:
- Remove them removes the documents from the module. This cannot be undone.
- Keep them changes nothing now. The next run looks again.
Only an admin can remove them. Only the latest run of a source can be confirmed, and only while it is held.
Re-sync
Sync now starts a run immediately. A second request while a run is active answers A run is already in progress. Checkpoints belong to the filters they were taken with, so a source with changed filters does not reuse them. Change a source with Edit; the module cannot be changed.
Delete a source
Select Delete on the source. The dialog is Delete source {name}? The source stops syncing. The documents it added stay in the module unless you choose Also delete the {count} documents from {kb}. Deleting a connector deletes its sources too, each as its When the source is removed setting says.

