Agentic AI with multi-model framework using Hugging Face smolagents on AWS
AWS•How-to••by Sanhita Sarkar, Jeff Boudier, Simon Pagezy and Florent Gbelidji•AWS 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.
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.
AI:Qlik describes how Qlik Answers, its grounded AI assistant on Amazon Bedrock, routes questions across specialist agents, analytics and document retrieval, with Guardrails checking answers.
AI:AWS Professional Services describes a four-agent Strands pattern on Bedrock AgentCore that generates IaC for MCP-connected migrations, which AWS says cut IaC work from 3-4 weeks per application to minutes.
AI:AWS sets out architectural principles for running many agentic AI systems across mixed frameworks, models and providers, keeping identity, policy, observability and routing central while execution stays decentralized.