Platform Import

This guide describes Platform import: a Topic or GraphRAG Topic that keeps itself in step with files on another platform, for example a folder in S3 storage or a SharePoint library. You do not upload these files by hand. The Topic looks for new, changed and deleted files on a schedule and imports or removes them on its own.


1. How it works

When Platform import is on, the Topic gets a second container next to its own: the sync container. It runs only while the Topic runs. It asks the platform which files exist, imports new and changed ones into the Topic, and deletes the documents whose files were deleted or moved on the platform.

A Topic can have several sources. A source is one place on one platform, for example one bucket and folder. Each source has its own schedule, filters and limits.

The platforms you can choose come from the sync container. This app offers exactly the platforms the container can read.

Everyone who may chat with the Topic can find everything its sources import. A folder that only some people may read on the platform becomes readable for every user of this Topic. Choose the Topic’s access roles with this in mind.

Sources change the Topic on their own. They add documents, and they delete documents that were deleted or moved on the platform.


2. Permissions

What you want to do Permissions you need

See the Platform Import section and a source’s page

View Topics (TOPIC_VIEW) or View GraphRAG Topics (GRAPHRAG_VIEW), and access to the Topic

Add, change, run, pause and remove sources

Manage Platform Import (TOPIC_SOURCES or GRAPHRAG_SOURCES) and Upload Documents (TOPIC_UPLOAD or GRAPHRAG_UPLOAD)

Switch Platform import on or off, restart the sync container

The two above, and Start / Stop Topics (TOPIC_START) or Start / Stop GraphRAG Topics (GRAPHRAG_START)

See every source of every Topic in one list

View All Platform Import Sources (SOURCES_VIEW_ALL)

Manage Platform Import is not part of the built-in USER role. It is a powerful permission: a source holds passwords and keys, and it adds and deletes documents. Upload Documents is needed as well, because the sync container writes into the Topic with its own credential: without that rule, a user could add and delete documents through a source that they may not upload by hand.


3. Switching it on

Open the Topic, go to the Data Upload tab and find the Platform Import section, between the upload area and the list of documents.

  1. Tick Import from other platforms.

  2. Start the Topic, if it is not running. The sync container starts with it.

  3. The line Sync container: shows its state: Checking…, Starting, Running, Stopped or Error. With Error, the reason is shown below it.

Turning the switch off stops the sync container. Sources and imported documents stay. When you turn it on again, the import continues where it stopped.

Restart sync container stops and starts the container, for example when it stopped answering. Imports in progress continue after the restart.


4. Adding a source

Click Add source. This needs the running sync container, so the Topic must run with Platform import on. The source’s page opens on its Settings tab.

Source

Field Meaning

Platform

Where the files come from. The list is what the sync container can read

Name

Shown on the Data Upload tab and in the admin overview, for example Engineering handbook

Short name

The folder name the imported documents get in the Topic, for example handbook/Guide.pdf. It cannot be changed later. If an earlier source of this Topic used the same short name and was removed without its documents, the new source takes those documents over

Connection

The fields here depend on the platform: for example a bucket and folder, an address, a user and a key. The platform describes each field.

  • Passwords and keys are never shown again after saving. The field then says Stored — leave empty to keep it. Leave it empty to keep the stored value, or type a new one to replace it.

  • File fields (for example a certificate) are chosen with Choose file. A stored file is kept when you leave the field alone. Remove the stored file removes it when you save.

  • A value written as a reference to a server variable, such as ${MY_KEY}, is refused. Enter the value itself.

  • File format — in which form each file is imported. The Topic must accept that file type (its Upload File Types, and a Docling server for documents). If it does not, the field says so and the source cannot be saved.

  • Test connection asks the platform with the values on the screen, without saving them. It shows Connection works. or the problems the platform reported.

Schedule and limits

A new source starts with the defaults your administrator set (see Settings).

Field Meaning

Check every (minutes)

How often new and changed files are looked for (a quick check). Shorter: changes arrive sooner, but the platform is asked more often. Longer: less load, changes arrive later

Full check every (hours)

How often every file is listed, to find deleted files and anything a quick check missed. Shorter: deletions show up sooner, but each full check takes longer

Only these files

One pattern per line, for example /.pdf. Empty imports every file. means any folders, any part of a name

Never these files

One pattern per line, for example /Archive/. These files are never imported, even if they match above

Largest file (MB)

Bigger files are skipped and listed under Files. Higher: more files arrive, but large files take long to process

Most documents per run

New and changed documents one run may import. The rest waits for the next run. Lower: steadier load and cost. Higher: a large first import finishes sooner

Mass-delete guard (share)

If one run would delete more than this share of the source’s documents, for example 0.2 for 20 %, it stops and waits for a confirmation. This protects the Topic when a folder was moved or access was taken away. Lower: stops sooner. See The mass-delete guard

Import right away

Only when adding. On: the source starts importing as soon as it is added. Off: it is added paused, so you can first check with a dry run what it would import, then start it

Click Add source (later: Save). Saving the settings never pauses or starts the source.


5. The sources list

The Sources list in the Platform Import section shows one row per source:

Column Shows

Name, Platform, Short name

What the source is

Result

The result of the last run

Last sync

When the last run ended

Documents

How many documents the source has in the Topic

Status

What the source is doing now, for example Waiting for the next run, Importing, Paused, or a problem with a link to the failed files

Each row has three buttons:

  • ▶ Run now — imports new and changed files and deletes documents whose files are gone, without waiting for the schedule. On a paused source it starts the schedule again, beginning with this run.

  • ■ Pause — stops a run in progress after its current file and runs nothing until you start the source again. Its documents stay in the Topic and can still be found.

  • Cog — opens the source’s page.

Some states need your attention:

  • Waiting for confirmation — the mass-delete guard stopped a run. Click Review deletions.

  • Blocked — the Topic no longer accepts the source’s file format. See Blocked sources.

  • Removal pending — the source was removed with its documents while the Topic was stopped. The documents are removed when the Topic next starts.

  • This platform is not offered by the sync container — the container no longer reads this platform, for example after a version change.


6. The source’s page

The page has four tabs. Back returns to the Data Upload tab of the Topic. Without Manage Platform Import and Upload Documents every tab is read-only.

Settings

The fields described in Adding a source. Platform and Short name cannot be changed.

Files

Every file the source found on the platform and what happened to it. Show filters the list: Failed (the tab opens on these), Skipped, Imported, Waiting, All files.

State Meaning

Imported

The file is in the Topic

Waiting for a run

Found, not imported yet (for example because of Most documents per run)

Skipped / Skipped by a filter

Too large, of the wrong type, or excluded by a pattern

Failed, tried again

Importing failed. The Reason column says why, Next try says when

Failed, waits until the file changes

Failed five times. It is tried again when the file changes on the platform

A failed file is tried again on its own: right away when it changes on the platform, otherwise after a pause that grows with each attempt.

Runs

The latest runs, newest first. A run is one of:

  • Quick check — new and changed files, on the Check every schedule,

  • Full check — every file, to also find deletions, on the Full check every schedule and for Run now,

  • Import everything again.

Click a run to see what it did: its step, result, the counts (files found, new, changed, renamed, deleted, skipped, failed, waiting for the next run) and under What happened every action, failures included. Stop run stops a running run after the file being imported now. Nothing already imported is undone.

A result Partly succeeded means some files failed. They are tried again later.

The mass-delete guard

If a run would delete more documents than Mass-delete guard (share) allows, it stops before deleting anything. The run shows Stopped by the mass-delete guard and Would delete … of … documents.

Check on the platform whether the files are really gone. Then either fix the source (for example a moved folder or a removed permission on the platform), or click Confirm deletions. A new run then deletes the documents.

Actions

  • Run now — as the ▶ button in the list. The mass-delete guard still applies.

  • Dry run — only lists the files and shows under Runs what a run would import, update and delete. Nothing in the Topic changes, and a paused source stays paused. Use it for a new source, or after you changed where a source reads from.

  • Pause / Start again — as the ■ and ▶ buttons in the list. Starting again runs the source on its schedule; the first run catches up on everything that changed meanwhile.

  • Remove source — the source stops importing and is removed. Without Also delete the documents it imported from this topic, its documents stay in the Topic and can still be found in the chat. With it, they are deleted — if the Topic is not running, when it next starts. This cannot be undone.


7. Imported documents

Imported documents carry the source’s short name as a folder, for example handbook/Guide.pdf. On the Data Upload tab the column Imported from names their source: under Server Files for a RAG Topic, under Ingested Sources for a GraphRAG Topic. Documents imported this way do not appear under Database, which lists only the files uploaded on that page.

Removing an imported document by hand lasts only until the source’s next full check, which imports it again. To keep a file out, add a pattern to Never these files, or remove the file on the platform.

Blocked sources

A source is blocked when the Topic no longer accepts its file format, for example after Upload File Types changed or a Docling server was removed. You see:

  • a warning when you save the Topic’s Configuration tab (or the GraphRAG wizard),

  • Blocked: … in the source’s row,

  • a warning sign in the Topic list.

The sync container then skips the source’s files and removes the documents it already imported on the next run. Change the source’s File format, or allow the type on the Topic again.


8. Health in the Topic lists

While a Topic runs with Platform import on and something needs attention, a warning sign appears next to its status in the list of Topics or GraphRAG Topics. Its tooltip lists the reasons, for example a stopped or failing sync container, failed files, deletions waiting for a confirmation, or a blocked source. While all is well, the list shows nothing extra.

The Topic itself still answers. The warning means only that its imported documents may be out of date. The status is checked about once a minute.


9. Admin overview

Admin → Platform Import (/admin/sync-sources, permission View All Platform Import Sources) lists every source of every Topic and GraphRAG Topic: the Topic, the source, the platform, the Location it reads (for example a bucket and folder), the last result and run, the number of documents and any problems. Passwords and keys are never shown.

The state, last run and counts come from each Topic’s sync container, so they are shown only while the Topic runs with Platform import on. Otherwise the status says Topic stopped or Platform import off. The cog opens the source’s page, which still requires access to its Topic.

The Metrics dashboard counts the documents all sources imported in its tile Documents Imported. See Metrics.


10. Settings

Administrators set these as environment variables of the app (see Supported settings for how).

Variable Default Meaning

SYNC_DEFAULTS_INTERVAL_MINUTES

60

Check every (minutes) of a new source

SYNC_DEFAULTS_SNAPSHOT_EVERY_HOURS

24

Full check every (hours) of a new source

SYNC_DEFAULTS_MAX_DOCUMENTS_PER_RUN

500

Most documents per run of a new source

SYNC_DEFAULTS_MAX_DELETE_RATIO

0.2

Mass-delete guard (share) of a new source

SYNC_DEFAULTS_MAX_FILE_SIZE_MB

100

Largest file (MB) of a new source

SYNC_DEFAULTS_RECOMPUTE_MIN_INTERVAL_HOURS

6

GraphRAG Topics only: the shortest time between two rebuilds of the communities after imports

SYNC_STARTUP_TIMEOUT

120

Seconds a start waits for the sync container to answer (on Kubernetes including the image download)

SYNC_SERVICE_IMAGE

cyrockai/knowledge-fabric-sync

Image of the sync container. Its version is the app’s version, like the other images (SYNC_SERVICE_IMAGE_VERSION, SYNC_SERVICE_PULL_POLICY; see Deployed image versions)

K8S_SYNC_CPU_REQUEST / K8S_SYNC_CPU_LIMIT

100m / 1

Kubernetes only: CPU of a sync container

K8S_SYNC_MEMORY_REQUEST / K8S_SYNC_MEMORY_LIMIT

512Mi / 1Gi

Kubernetes only: memory of a sync container

KUBERNETES_SYNC_LEDGER_SIZE

2Gi

Kubernetes only: the volume where the sync container remembers what it imported. It also holds each file while it is imported, so it must fit the largest file a source may import

The defaults apply to new sources only. Each value can be changed per source.


Troubleshooting

Symptom Likely cause

Add source is greyed out

The Topic is not running, Platform import is off, or the sync container is not running yet. Its tooltip says which

Sync container: Error

The container did not start or does not answer. Read the reason below the line, then try Restart sync container

Files stay Failed

Read the Reason on the Files tab. Typical: the Topic’s Docling server or embedding model cannot be reached, or the file is damaged

A source shows Waiting for confirmation

The mass-delete guard stopped a run. See The mass-delete guard

A removed document came back

Removing by hand lasts only until the next full check. Use Never these files

The admin overview shows no counts

The Topic is stopped or Platform import is off