Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Test a Revision Before It Goes LiveBeta

Beta
This is coming — this page describes a feature that's still being rolled out and may not be available to you yet.

Keep a weaker pipeline version away from your callers by adding a Deployment Gate to the service. The gate tests every new revision before it starts serving: it runs your test cases through the revision and checks that the Evaluation goals of the pipeline are met. If a goal is missed, the revision stays out of production and the current revision keeps answering. If you've used release gates in a CI/CD workflow, this is the same idea built into the service. To learn how gates and checks work, see Deployment Gates.


Prerequisites​

  • You must have permission to edit services. Without it, the gate controls are disabled.
  • The service's pipeline must have at least one Evaluation goal, and the Dataset you want to replay must exist. To learn about goals, see Evaluation Goals. To create a Dataset, see Build an Evaluation Dataset.

Add or Edit a Gate​

  1. In Haystack Enterprise Platform, click Gateway in the navigation and open the service, then click the Gate tab.
  2. On the Gate tab, click Add gate. If the service already has a gate, click Edit gate instead.
  3. In Evaluation goals, open a category and select the goals the new revision must meet. The gate passes only when every selected goal has passed. The picker works like the one you use to set up an AI Operator: one category opens at a time. Safety goals are always selected and can't be cleared.
  4. In Dataset to replay, select the Dataset.
  5. In Minimum coverage, enter the share of sessions, between 0 and 1, that must be judged for every goal. Below this value, the gate can't decide.
  6. Click Save gate.

The Gate tab now shows the gate's goals, Dataset, and minimum coverage in a one-line rules bar below the newest result. The gate applies to the next revision you deploy. To see whether that revision passed or was held back, see Check If a Revision Went Live. To remove the gate, click Delete gate in the rules bar and confirm. New revisions then go live without being checked.

A gate has one goal check. If the pipeline has no Evaluation goal, the form links to the pipeline's Evaluation goals page, and you can't save the gate until you add a goal there. If the goals fail to load, try again. If saving fails, check the Dataset to replay and Minimum coverage fields, and check that the goals you selected still exist.

If a goal in the gate was deleted from the pipeline, it stays listed below the picker. Click Remove from gate next to it to take it out of the check. You can't save the gate until you remove it.

Gates Saved Before Evaluation Goals​

A gate saved before Evaluation goals can hold checks on a Metric Group's Composite score. The Gate tab and the form show these checks as read-only with a Historic badge. They aren't translated into goals. When you save the gate in the form, the goal check replaces them.

What To Do Next​