Amazon Q Developer gives generative AI help inside Amazon SageMaker Unified Studio for information discovery, information processing, SQL analytics, and machine studying workflows. At the moment, we’re asserting enhancements to the Amazon Q Developer chat expertise in SageMaker Unified Studio JupyterLab built-in improvement setting (IDE) and including Amazon Q Developer within the command line in JupyterLab and Code Editor IDEs. By integrating with Mannequin Context Protocol (MCP) servers, Amazon Q Developer is conscious of your SageMaker Unified Studio venture assets, together with information, compute, and code, and gives personalised, related responses for information engineering and machine studying improvement. You should use this improved AI help to setup your improvement setting extra shortly, and for duties like code refactoring, file modification, and troubleshooting whereas sustaining transparency into how the AI assistant is performing in your behalf.
Resolution implementation
On this publish, we are going to stroll via how you should use the improved Amazon Q Developer chat and the brand new built-in Amazon Q Developer CLI in SageMaker Unified Studio for coding ETL duties, to repair code errors, and generate ML improvement workflows. Each interfaces use MCP to learn recordsdata, run instructions, and work together with AWS companies straight from the IDE. You may as well configure further MCP servers to increase Amazon Q Developer’s capabilities with customized instruments and integrations particular to your workflow.
Stipulations
Earlier than beginning this tutorial, you have to have the next stipulations:
- Entry to a SageMaker Unified Studio area. Should you don’t have a Unified Studio area, you possibly can create one utilizing the fast setup or handbook setup choice.
- Entry to or can create a SageMaker Unified Studio venture with the All capabilities venture profile enabled.
- Entry to or can create a JupyterLab or Code Editor compute house. We are going to stroll via a JupyterLab IDE instance. There is no such thing as a minimal occasion kind requirement to make use of the brand new options. On this publish, we use an
ml.t3.mediumoccasion. At launch, SageMaker Distribution photographs 2.9 (accommodates Amazon Q Developer chat and Amazon Q Developer CLI) or 3.4 (accommodates Amazon Q Developer CLI) are required.
Importing the dataset to an Amazon S3 bucket
- Obtain the Diabetes 130-US hospitals dataset. This dataset accommodates 10 years (1999–2008) of medical care information from 130 US hospitals and built-in supply networks.
- On the Information part in the midst of your venture web page, select + on the highest. This opens Add information on the precise.
- On Add information, select Create desk.
- Choose Select file or drag and drop the
diabetic_dataCSV file. - Choose S3/exterior desk and full the data within the kind.
- Choose Subsequent to add the dataset.
Amazon Q Developer chat
Amazon Q Developer chat in SageMaker Unified Studio is an agentic AI assistant that robotically understands your venture, together with information, compute assets, and code to offer extremely related ideas and insights. It helps you reply questions on your venture, perceive complicated datasets, write code, and create notebooks, making it a strong coding companion for creating ETL workflows, constructing ML fashions, or growing generative AI functions. We are going to stroll via consumer personas, information engineer and ML engineer, to point out how you can use the Amazon Q Developer chat to do exploratory information evaluation, troubleshoot code, and carry out predictive evaluation. Observe: Amazon Q Developer code safety scanning will auto-scan the code as it’s being written within the IDE and supply suggestions for remediation and in some instances a code repair as properly. This helps you proactively determine and take away safety vulnerabilities in your codebase, each in current codebase and in new code as you write it within the IDE.
To launch Amazon Q Developer chat:
- Navigate to your venture. Entry the JupyterLab IDE. On the time of launch, Amazon Q Developer chat is just accessible within the JupyterLab IDE.
- Select the icon on the left for Amazon Q Developer chat. If that is the primary time opening, a message shows so that you can acknowledge the AWS insurance policies for accountable AI.
- Enter the inquiries to work together with Amazon Q Developer chat. Enter over the Ask a query… line.
Configure further MCP servers
You may add further MCP servers such because the Amazon Datazone MCP server or the AWS Information Processing MCP Server to be used in Amazon Q Developer chat and the Amazon Q Developer CLI. Within the following steps, we add the AWS Information Processing MCP Server, an open supply instrument that makes use of MCP to simplify analytics setting setup. The AWS Information Processing MCP Server contains entry to AWS Glue job statuses, Amazon Athena question outcomes, Amazon EMR cluster metrics, and AWS Glue Information Catalog metadata. For extra data on configuring MCP servers, see MCP configuration for Q Developer within the IDE.
The next are the steps to configure further MCP servers:
- Navigate to Amazon Q Developer chat and choose the Configure MCP servers instruments icon within the higher proper. You even have the choice edit the configuration file positioned at
/house/sagemaker-user/.aws/amazonq/brokers/default.jsonso as to add an MCP sever in Amazon Q Developer chat. You may as well navigate to/house/sagemaker-user/.aws/amazonq/mcp.jsonwithin the terminal and edit the configuration file so as to add an MCP server in Amazon Q Developer CLI.
- Choose the + image to Add new MCP server.
- Add the next data within the kind:
- Choose the scope: International
- Title: Enter
awsdp-mcp - Transport: Choose
stdio - Command: Enter
uvx - Arguments-optional: Enter
awslabs.aws-dataprocessing-mcp-server@newest
- Select Save.
Information engineer
As an information engineer, you would possibly construct ETL jobs and information pipelines. Amazon Q Developer chat helps cut back setup time and improves workflow effectivity by refactoring code, implementing finest practices, and troubleshooting errors. Amazon Q Developer makes use of AI to offer code suggestions, and that is non-deterministic. The outcomes you get is perhaps totally different from those proven within the following examples. Instance immediate:
Run the next steps, after the answer is created.
- Go to the pocket book.
- Run the created pocket book and overview every part:
- Information loading
- Descriptive evaluation
- Correlation matrix
- Information preprocessing similar to dealing with lacking values
- Analyze significance of options
- Evaluate the
README.mdfile. - You can also make modifications on the created recordsdata.
- You may immediate the Amazon Q Developer chat to make further modifications for you.
Repair errors with out specifying the error
You may give directions in a conversational method to Amazon Q Developer chat. With out the necessity to specify the error, Amazon Q Developer chat will entry your pocket book and repair the error.
- Open your pocket book.
- Immediate
The pocket book isn’t working, are you able to repair it?Amazon Q Developer chat will determine the error from the pocket book. - Evaluate the problem and the answer. Run the pocket book once more.
ML engineer
As an ML engineer, you would possibly analyze complicated datasets and run ML experiments. You may ask Amazon Q Developer chat to tackle an ML engineer position and carry out a predictive ML mannequin on the dataset. Additionally, you possibly can ask to take the output from the info engineer under consideration. Instance immediate:
Run the next steps, after the answer is created:
- Run the created pocket book and overview every part:
- Observe that the pocket book is working efficiently.
- Amazon Q chat included function engineering part primarily based on information engineer’s output.
- 4 ML fashions (Logistic Regression, Random Forest, Gradient Boosting, and XGBoost) have been recognized for diabetes readmission prediction.
- Fashions have been evaluated utilizing a complete metrics suite together with accuracy, precision, recall, F1 rating, and ROC AUC to assist guarantee balanced efficiency.
- Function engineering produced vital predictors similar to earlier inpatient visits and medicine modifications, whereas hyperparameter tuning optimized mannequin efficiency.
- The ultimate implementation balances predictive energy with medical interpretability, enabling efficient identification of high-risk sufferers.
Amazon Q Developer CLI
The Amazon Q Developer CLI additionally understands your code, information, and compute assets, however is optimized for customers preferring working within the terminal. It helps you execute and automate information processing, mannequin coaching, and generative AI duties via pure language prompts.To launch the Amazon Q Developer CLI:
- On the highest menu of your SageMaker Unified Studio venture web page, select Construct, and underneath IDE & APPLICATIONS, select JupyterLab.
- Watch for the house to be prepared.
- From the Launcher tab, open a brand new terminal. Or navigate to File > New > Terminal.
- Enter
q chat
At launch, Anthropic’s Claude Sonnet 4 in Amazon Bedrock is the default giant language mannequin (LLM). You may select different LLMs, relying in your AWS Area. To view the accessible fashions or change the fashions enter /mannequin. MCP instruments are executable capabilities that MCP servers expose to the Amazon Q Developer CLI. They permit Amazon Q Developer to carry out actions, course of information, and work together with exterior techniques in your behalf. To view the accessible instruments, enter /instruments.
Instance immediate:
Clear up
SageMaker Unified Studio by default shuts down idle assets similar to JupyterLab and Code Editor areas after 1 hour. Nonetheless, it’s essential to delete the Amazon Easy Storage Service (Amazon S3) bucket to cease incurring further prices. You may delete any real-time endpoints you created utilizing the SageMaker console. For directions, see Delete Endpoints and Sources.
Conclusion
The improved AI help accessible in JupyterLab and Code Editor IDEs in SageMaker Unified Studio helps streamline information engineering and machine studying workflows by offering solutions related to your venture recordsdata, notebooks, information, and compute. Whether or not you’re an information engineer constructing ETL pipelines, an information scientist conducting exploratory evaluation, or an ML engineer growing predictive fashions, these options now perceive what you’re engaged on and provide help to do it extra effectively. That is simply the beginning of our agentic journey in SageMaker Unified Studio. To study extra, overview the SageMaker Unified Studio Consumer Information. We encourage you to discover the MCP capabilities and the AWS MCP Servers repository on GitHub.
In regards to the authors
Lauren Mullennex is a Senior GenAI/ML Specialist Options Architect at AWS. She has over a decade of expertise in ML, DevOps, and infrastructure. She is a broadcast creator of a e-book on pc imaginative and prescient. Outdoors of labor, you will discover her touring and mountaineering together with her two canine.
Siddharth Gupta is heading Generative AI inside SageMaker’s Unified Experiences. His focus is on driving agentic experiences, the place AI techniques act autonomously on behalf of customers to perform complicated duties. Beforehand, he led edge machine studying options at AWS. This cutting-edge work goals to revolutionize how builders and information scientists work together with AI, creating extra intuitive information integrations and highly effective instruments for constructing and deploying machine studying fashions. An alumnus of the College of Illinois at Urbana-Champaign, he brings in depth expertise from his roles at Yahoo, Glassdoor, and Twitch. You may attain out to him on LinkedIn.
Ishneet Kaur is a Software program Growth Supervisor on the Amazon SageMaker Unified Studio group. She leads the engineering group to design and construct GenAI capabilities in SageMaker Unified Studio
Mohan Gandhi is a Senior Software program Engineer at AWS. He has been with AWS for the final 10 years and has labored on numerous AWS companies like Amazon EMR, Amazon EFA, and Amazon RDS. Presently, he’s centered on enhancing the SageMaker inference expertise. In his spare time, he enjoys mountaineering and marathons.
Mukul Prasad is a Senior Utilized Science Supervisor within the AWS Agentic AI group. He leads the Information Processing Brokers Science group growing DevOps brokers to simplify and optimize the client journey in utilizing AWS Large Information processing companies together with Amazon EMR, AWS Glue, and Amazon SageMaker Unified Studio. Outdoors of labor, Mukul enjoys meals, journey, images, and Cricket.
Murali Narayanaswamy is a Principal Machine Studying Scientist within the Agentic AI group in AWS engaged on merchandise together with Amazon Bedrock, Amazon SageMaker Unified Studio, Amazon Redshift and Amazon RDS. His analysis pursuits lie on the intersection of AI, optimization, studying and inference significantly utilizing them to grasp, mannequin and fight noise and uncertainty in actual world functions and Reinforcement Studying in follow and at scale. Broadly, he works on utilizing concepts from on-line algorithms, optimization underneath uncertainty, management concept, recreation concept, synthetic intelligence, graphical fashions and estimation concept to resolve necessary issues at Amazon scale.
Necibe Ahat is a Senior AI/ML Specialist Options Architect at AWS, working with Healthcare and Life Sciences clients. Necibe helps clients to advance their generative AI and machine studying journey. She has a background in pc science with 15 years of trade expertise serving to clients ideate, design, construct and deploy options at scale. She is a passionate inclusion and variety advocate.
Vipin Mohan is a Principal Product Supervisor at Amazon Internet Providers, the place he leads generative AI product technique. He focuses on constructing AI/ML merchandise, container platforms, and search applied sciences that serve hundreds of shoppers. Outdoors of labor, he mentors aspiring product managers, enjoys studying about monetary investing and entrepreneurship, and loves exploring the world via the eyes of his two children.







