AI Cloud Architect

Beyond vibes: How to properly select the right LLM for the right task

AWSHow-to by Claudio Mazzoni and Anubhav SharmaAWS Artificial Intelligence Blog

In this post, we discuss an approach that can guide you to build comprehensive and empirically driven evaluations that can help you make better decisions when selecting the right model for your task.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

AWS describes a multi-metric, ground-truth evaluation approach for choosing an LLM, implemented with the open source 360-Eval framework that measures quality, latency and cost across models.

Who it is for

Architects and teams on Amazon Bedrock who need to choose a model for a specific task and move beyond ad hoc testing.

Key points

  • 360-Eval uses LiteLLM to call Bedrock or SageMaker models and an LLM-as-a-judge to score correctness, completeness, relevance, format, coherence and instruction following.
  • The example compares four unnamed Bedrock models on PostgreSQL data extraction and text-to-SQL tasks, with results specific to one test account.

The same at other vendors

Same approach

MicrosoftHow-to

How to run evals for the model router

AI:Both give an open-source pipeline that scores models on quality, cost and latency to pick the right one, at AWS and Microsoft.