AI OperatorBeta
Use an AI Operator when you want a running Service to cost less without lowering the quality of its answers. You set a goal on the Service, the AI Operator measures how the Service performs today, and then it suggests cheaper configurations for you to review. You decide what to do with each suggestion.
What You Need Before You Start
- A running Service. Each Service can have one AI Operator, so you can't add a second one to a Service that already has one.
- Evaluation goals on the Service's pipeline. Their Evaluators define what good answers look like, and the AI Operator judges every candidate on them. If your pipeline has no Evaluation goals yet, create them first. For details, see Define Evaluation Goals on a Pipeline.
- Conversations to learn from. The AI Operator works from real conversations (Sessions) of your Service. You can start with as few as 9, but the results are more reliable with more. Runs with fewer than 50 conversations are marked as a small sample.
To add an AI Operator, see Set Up an AI Operator for a Service. To find it later, go to Operate > AI Operator for the list of all goals in your workspace, or open the Service and use its AI Operator button.
What to Expect
- A baseline comes first. The AI Operator measures the cost, latency, and quality of the live pipeline version. Every suggestion is compared with this baseline, so you can ask for suggestions only after it exists. For details, see Measure an AI Operator Baseline.
- Suggestions are tested before you see them. The AI Operator proposes alternative configurations and tests each one on conversations. It doesn't apply or promote anything by itself.
- You review and decide. You compare each suggestion with the baseline and accept or decline it. For details, see Review AI Operator Suggestions.
- Every run is kept. You can open earlier runs to see what they measured and suggested. Only the latest run's suggestions can be accepted or declined.
Things That Are Easy to Miss
Evaluation Goals Decide Which Suggestions Are Eligible
A suggestion that misses a Safety goal isn't eligible, whatever the baseline's result. Eligible suggestions are ranked on cost. Other Metrics are shown next to the baseline's: a suggestion that scores lower on one is flagged with a warning, but it can still be ranked and shown. Before you accept a suggestion, check each Metric against the baseline. To learn how the AI Operator checks quality, see AI Operator Quality Gates.
Suggestions Are Tested on Conversations the AI Operator Didn't Learn From
The AI Operator splits the conversations 70/30. It uses the larger share to come up with changes and keeps the smaller share back to test each suggestion. This way, a score reflects conversations the AI Operator never saw.
With a small run, the test share is tiny. With 9 conversations, each suggestion is judged on only 3, so its verdict is less reliable than on a larger run. Treat suggestions from a small sample with care.
Evaluation Goals Can Change Between Runs
The AI Operator judges on every Evaluation goal of the Service's pipeline, except the non-Safety goals you left out when you added it. Safety goals are always judged and can't be left out. A goal you add to the pipeline later is judged on from the next run. A goal you delete is dropped, and the operator goes on with the rest.
An open run keeps the goals and Evaluator versions it started with, so editing a goal later doesn't change a run's baseline or verdicts. An AI Operator that you set up with a Metric Group before Evaluation goals existed no longer judges with that Metric Group. To judge on the pipeline's Evaluation goals, remove the AI Operator and add it again. For steps, see Set Up an AI Operator for a Service.
Related Information
Was this page helpful?