Canary Testing
Last updated
Was this helpful?
Last updated
Was this helpful?
This feature is available on all Portkey .
You can use Portkey's AI gateway to also canary test new models or prompts in different environments. This uses the same techniques as but to achieve a different outcome.
Let's take an example where we want to introduce llama2 in our systems (through Anyscale) but we're not sure of the impact. We can create a config specifically for this use case to test llama2 in production.
The config object would look like this
Here we are telling the gateway to send 5% of the traffic to anyscale's hosted llama2-70b model. Portkey handles all the request transforms to make sure you don't have to change your code.
You can now in your requests.
Once data starts flowing in, we can use Portkey's to see the impact of the new model on cost, latency, errors and feedback.