Use intermediate parameters to evaluate block output

LLM-backed functionality often includes multiple complex operations, and only evaluating the end result may be insufficient to determine prompt performance.

With AIP Logic and AIP Evals you can set up intermediate parameters for evaluation. Similar to final function outputs, intermediate outputs can be used for setting up automated evaluators, or to simply look at the results. Intermediate parameter output values will be included in the evaluation suite results dataset should one be set up.

Set up intermediate parameters

To set up intermediate parameters for evaluation, follow these steps:

  1. Select the flask icon on an AIP Logic block to expose the output as an intermediate parameter.
  2. Select the new intermediate parameter in the evaluator configuration panel to evaluate the output.

Set up intermediate parameters for evaluation.

You can also ask AI FDE to add intermediate parameters to your Logic function.

Supported blocks

You can add intermediate parameters to top-level blocks and to blocks nested inside groups and conditional branches, at any depth.

Intermediate parameters are not supported on blocks that can run multiple times in a single execution, because these blocks do not produce a single value to capture. This includes blocks inside loop bodies, reduce operations, compute-with-timeout callbacks, and custom tools.

Whether an intermediate parameter captures a value depends on where its block is located:

  • Top-level blocks: Blocks with intermediate parameters always run, even when their output is not connected to the function output.
  • Nested blocks: An intermediate parameter only captures a value when its block runs. If a nested block does not run, for example because its conditional branch is not taken, its intermediate parameter appears as null in the run results.