Skip to main content
Version: 4.0

3.2 Analysis Engines

An Analysis Engine analyses files you give it. Where an agent answers from the knowledge graph, an engine works on uploaded files in a sandbox: a separate, isolated workspace with limited CPU, memory and time. It can read the files, run commands on them and write new files, which it publishes as its result.

You set up engines as profiles: which model the engine uses, its instructions and its limits. You run a profile in Sessions.

Profiles​

Open M4AI › Analysis Engines. The list shows each profile's name and instructions, its latest version, its model and its sandbox limits. Search by name or instructions. Click a profile to see its details and actions.

An Analysis Engine profile: its actions, model, sandbox limits and instructions

Choose New profile, enter a name and fill in:

  • Instructions: standing instructions included in every analysis, for example the approach, the output format or how to cite sources. You give the specific task when you run the engine.
  • Model: a Model & runtime configuration at its current revision, and the protocol to call the model with. The protocols offered depend on the provider.
  • Resource limits: CPUs (0.5 by default), memory (1024 MiB), how many model requests the engine may make per turn (100), and how long a turn may take (30 minutes). The maximum values are set in the deployment.
  • Engine options: settings of the engine itself, for example its maximum number of steps.

Choose Create profile. The profile is created as v1.

Versions​

Every save creates a new, unchangeable version. To change a profile, choose Edit as new version and save it as the next version. A conversation keeps the version it was started with, so changing a profile does not affect running conversations.

Run an engine​

Choose Run engine, in the profile or in Sessions, and pick a profile:

  1. Write your instruction, for example what to calculate and which files to produce.
  2. Choose Attach files and add one or more files. You can describe each file to help the engine understand it. The first instruction needs at least one file.
  3. Choose Send.

DCH uploads the files and seals them into an input package: a frozen copy that cannot change afterwards. The engine then starts in its sandbox. You follow its messages and its activity, such as the commands it runs and the files it reads and writes.

When the engine is done, its answer and its Published files appear in the turn. Choose a file to preview it, for example a CSV as a table or a Markdown file rendered, or download it.

A conversation with an Analysis Engine: the end of its answer, the two files it published, and the field for a follow-up instruction

To continue, write a follow-up instruction. The files of earlier turns are carried over, and you can attach more. A conversation runs one turn at a time. Stop cancels a running turn.

Execution shows the details of a turn: the input package, the published files, every tool call with its output, and the turn's timing and token usage.

Run history on the Analysis Engines page lists all runs, so you can reopen their inputs and results.

Runtime status​

Runtime status shows whether the engine's runtime is ready for new runs, with the checks of each worker. If it is unavailable, your instructions and uploaded files are kept, and you can start the run again once it is ready.

Delete a profile​

Choose Delete profile and conversations to permanently delete the profile with all its versions, conversations and files. A profile with active runs cannot be deleted. The cleanup continues in the background; filter the list by Cleanup to follow it.