AI Cloud Architect

Agentic AI with multi-model framework using Hugging Face smolagents on AWS

AWSHow-to by Sanhita Sarkar, Jeff Boudier, Simon Pagezy and Florent GbelidjiAWS Artificial Intelligence Blog

Hugging Face smolagents is an open source Python library designed to make it straightforward to build and run agents using a few lines of code. We will show you how to build an agentic AI solution by integrating Hugging Face smolagents with Amazon Web Services (AWS) managed services. You’ll learn how to deploy a healthcare AI agent that demonstrates multi-model deployment options, vector-enhanced knowledge retrieval, and clinical decision support capabilities.

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

AI: Summary

What it is

Shows how to build a healthcare agent with Hugging Face smolagents that switches between SageMaker, Bedrock Claude and a containerized model server, using OpenSearch for retrieval.

Who it is for

Teams building AWS-hosted agents who want to swap model backends without changing agent code.

Key points

  • Demo covers six medications, with a sample knowledge index in OpenSearch Service.
  • Deployment needs Docker for the production code-execution sandbox and roughly 15-20 minutes for infrastructure.
  • Backends share a Messages API-compatible request and response format.

Timeline

  1. This postAgentic AI with multi-model framework using Hugging Face smolagents on AWS
  2. Read nextMigrating multi-model AI agents to Amazon Bedrock AgentCore runtime · AWS · How-to

Go deeper