Skip to main content
A task needs data to run over. In Speedtrain that data lives in an index — a collection of documents ingested from an external system.

Create an index

1

Open Content sources

Go to Content sources. The Indices tab lists the indexes in the current environment; Stage outputs lists content generated by tasks.
2

Add an index

Click Add index and give it a name and an alias. The alias is the stable handle you use when pushing documents and when referencing the index elsewhere.
3

Push your documents

Send your records to the index through the ingestion API using a management client key. Management clients

Updating and deleting documents

  • Pushing identical content changes nothing. No new version is made, and nothing runs.
  • Any changed field is new data, even a field no configuration reads. A document accepted before is then due again under Should be processed. Keep fields that change often but do not matter, such as timestamps, out of what you push.
  • A deleted document is left out of every new run. Its items already waiting for a decision stay open.
  • A document pushed again after a delete is a new document. It has no accepted output yet.
What runs again after a change

Document shape

A document is a JSON object. Speedtrain reads whatever fields you send, so the shape is yours to decide — use the field names your source system already uses rather than inventing new ones.
Send the raw attributes, not a pre-written summary. The model does better work from structured fields than from prose someone else already condensed.

Images and documents

Two top-level keys are reserved for attachments a model can read: $images for pictures and $documents for PDFs. Each is an array of objects with a url and an optional text caption.

Images

If you want a model to see the product photos, add a top-level $images array:

Documents

If you want a model to read spec sheets, safety data sheets, manuals or certificates, add a top-level $documents array:

Rules for both

$images and $documents must be at the top level and spelled exactly that way. A nested or differently-cased key is treated as ordinary data and ignored. Each may appear once per record, and each entry may carry only url and text. A malformed array rejects the whole record at ingest, naming the offending element.
What the URL serves when the item is processed is what the model reads. Speedtrain never downloads or stores the file — the model provider fetches it. Carrying the key is not enough on its own. A model reads the attachments only when its Image Reading or Document Reading ability is switched on. Capabilities and abilities An empty $images: [] or $documents: [] is valid — “this record has no pictures” is a legitimate fact. Whether such a record fails or runs without them is decided by the ability’s When the record has no images or When the record has no documents setting. When the record has no images or documents

Using another task’s output instead

An index is not the only possible input. A task can also run over the accepted output of another task, which is how you chain jobs. You choose between the two when you start a session, not when you build the configuration. Content sources