Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Map

Run the same task over many inputs in parallel.

A Map batch runs the same task over many inputs, in parallel. Each input gets its own run, each run produces a score or result, and the results are combined when every run has finished.

When it's used

Use Map when you have a list of things to process the same way, and each one is small enough for a single worker. For example:

  • Scoring each of 500 stocks on a quality metric

  • Checking every claim in a research note against its source

  • Extracting the same fields from each filing in a set

How it works

  1. The superagent writes one brief that applies to every input, and supplies the list of inputs.

  2. A small pool of workers works through the list in parallel, reusing workers as they finish, rather than creating one worker per input.

  3. Each run produces a score.

  4. When all the runs are done, the scores are combined and the superagent is notified once.

What you see

On the Map, the batch shows as one tile with its progress. Its results view is a score chart of each run's score.

Example request

Score every stock in the S&P 500 on our quality factor and give me the top and bottom 20.

For a deep analysis of each input that needs a whole team rather than one worker, such as a full review of each portfolio company, use a Survey instead.

Last updated

Was this helpful?