Skip to main content
The basic setup described in Quickstart is the simplest way to get started and is recommended for most users. However, it does not support prompt optimization. It supports: Model routing, fallbacks and retries
Automatic model leaderboard
Finetuning & distillation
Prompt optimization
In order to perform prompt optimization, Auto must understand:
  • What parts of a request may be optimized (eg: instructions to the LLM )
  • What parts of a request may not be optimized (eg: inputs, previous chat messages)
Thus, you can provide metadata to Auto to help it understand how your request is structured.

Marking optimizable segments

Use markOptimizable and markInput to denote the parts of your request that may be optimized. The Auto server removes these tags before submitting them to the LLM. markOptimizable and markInput are rather simple, they merely surround an input with an XML marker.
Here’s a full example:
OpenAI SDK (.ts)
If you find that you need to remove the tags from your request, eg: if you decide to send it to an LLM without using Auto, you can use removeMarkers to do so.
OpenAI SDK (.ts)