AI Agent for Big Data Analytics | Amazon Web Services

Amazon Web Services · Advanced ·☁️ DevOps & Cloud ·10mo ago

Key Takeaways

The video demonstrates an AI Agent for big data analytics using Amazon Web Services, including AWS Glue, Amazon Athena, and large language models to query and analyze data in Amazon S3. It showcases the power of natural language to perform research on big data and generate reports.

Full Transcript

Hello. In the next few minutes, you will learn how to use AI agents to analyze big data using open source trans SDK in AWS. I'm Chandra Ready. I'm a senior manager for Genai specialist solution architects at AWS. So what we will do is we will build an AI agent to explore big data and we will also have the AI agent generate business ideas and run natural language queries against the big data. So the text tag that we're going to use in AWS is uh we'll use strands agents and tools MCP servers Amazon bedrock anthropic cloud sonnet model AWS glue and Amazon Athena. Our goal is to allow users to generate research reports based on the data that is stored in Amazon S3. They know they have park files in Amazon S3 but they need to generate research reports. So how do they do that? They will build an AI agent that is going to use AWS Glue to crawl the data, catalog the data, um, and create essentially the metadata for this data and then it's going to use Amazon Athena to query this big data and then use the large language model to respond back uh, and generate research reports. The data that we're going to use is New York City taxi and limosine commission trip record data. Once you download the data and upload to S3, this is how the data would look like. This is are all these are all parket files. So the task ahead of us is that let's build an agent that will actually explore this data. Um so how many what is the file type? What's the count of file? What's the size of all the files? We'll identify ask the AI agent to identify five different industry verticals that will benefit with this data. and how do you monetize um the data uh in those industries and what are the limitations of the data and then it will create a nice report for us to read and of course we will also look at what are the token costs to the large language models to generate all these five research reports. So essentially it comes down to actually um system prompt prompt and really three lines of code to generate these research reports. The system prompt is where we are we specify the agent what what skills does it have what's the style and tone that it should generate the reports and the prompt essentially we are saying what's the task that it needs to accomplish um and this is where we are asking all these questions what's the type of the file uh how large are those files identify five businesses and generate the insights write SQL statements and what are the shortcomings and so on and in the mode what we are doing is we are creating a bedrock model and specifying anthropic cloud 3.7 sonnet to be used. We are specifying the temperature. We're creating a strands agents object by passing in the model the system prompt and we're also passing two tools uh which is use AWS and file write and we will double click on this in a uh in a minute and once we create the object we are passing the task to the agent and asking it to execute and once the agent executes let's look at what it has done what's the data structure that it has identified and uh the research reports that it has created Let's head over to the notebook. This is the data structure that it has identified. Um, as you can see here, uh, the table name, the column names, the type of the columns and the, uh, information in the columns. Again, remember we did not write any piece of code uh to create PIP data pipelines. Um the AI agent actually did it on behalf of us by talking to AWS Glue and creating this catalog and write uh and creating these data types and then it used Amazon Athena to generate uh queries and execute the queries uh and create this research report based on the data that was there in the park files. What you see here is that it was smart enough to figure out what who is the target audience and here especially we are looking at urban planning as smart city solutions. It figured out the target audience and uh as an example here it's trying to identify critical congestion corridors for that it wrote a SQL query and it found out that location 132 as an example appears in nine of the 15 most congested high volume routes. It continues to do its analysis, wrote a few more SQL queries, extracts the results, and then passes on the results to the large language model and ask it to create the rest of the report. So now let's head back to our presentation. Um let's look at the obviously it created nice reports, five such reports, but there must be a cost associated for the agent to think and execute this task. So the cost translates in terms of input tokens to the last language model. As you can see here, the cost for those tokens obviously is a function of which region are you using, which last language model are you using. Always refer to the AWS website for the latest pricing. But based on today's cost for 3.7 sonnet, it's $3 per million tokens multiplied by the input tokens gives you this much cost. The output tokens was approximately 10,000. And these are the cost per million tokens. That translates to these many costs to generate five reports. the total cost was approximately.70. So even if you were to generate 5,000 such research reports per month, your costs are just $700. Now compare that with um human costs that would be needed to generate 5,000 such reports. That would be far more than this. And also the time it takes to create 5,000 research reports would be far more than what you are seeing here. For five reports, it's less than 3 minutes. So that's the benefit of using AI agents to even analyze big data um in Amazon S3. So the key benefits that we saw here was that um anybody from analyst to CEO can create or uh research reports or explore data in a completely self-service manner and they can generate new business ideas and they didn't have to wait for long large data pipelines. they were just able to get it rapidly at very very low cost. Now we created the research reports but what about um uh understanding how did the agent reason all of this? So let's look at that. So what we have here is agent large language model and tool and how do they interact with each other. So user submit a research query. What the AI agent is doing is it's in using these two tools use AWS and file write that we specified passed it to the agent and we also specified the large language model that it should be using. So essentially when a research topic is submitted the AI agent breaks it up into smaller topics subtopics u by working with the large language model it reasons and then for all those various sub uh tasks it invokes these tools. So as an example, it has to first identify what are the objects or paret files available in S3. So it you uses the tool use AWS and invokes this API and then it gets the table schema and then it using AWS glue and then it uses Amazon Athena to create SQL queries and execute the SQL queries and gets the results and then it passes the results back to the large language model which understands those results and then it invokes the file write tool to essentially write a markdown research report in a markdown format. format. So this is how they interact and then it goes on for the next report and continues this process for the next five reports. So that in a nutshell is how the AI agent works with the large language models and the tools to get the job done. Let's pick another example of asking natural language questions. So the value for managers and even seuite is that they can ask natural language questions anytime in a self-service manner. They don't have to they don't have long wait cycles with engineering teams to build data pipelines and uh they can create research reports or responses in minutes instead of days and more importantly uh they can perform what if analysis to changing market conditions and competitive landscape. So let's look at an example of how to accomplish this. If for example on the big data that you had in Amazon S3 you want to figure out what are the top five hours for maximum fair in January and April of 2025 you submit that as a query you create a bedrock model and you're specifying to use claw 3.7 sonnet and then in this case we are using an MCP server to list all the tools that it has and then we are passing those tools to our agent here final tools we specified the model which is cloud 3.7 7 set and the system prompt and then we pass the actual query into the agent and executed it and we are also passing a Python ripple tool here. What it does is it will actually write Python code to generate nice bar charts and executes it. So essentially what it is not what it is all doing is that it's not only uh using AWS glue to understand the metadata and Amazon Athena to generate SQL queries and execute the SQL queries but it also then generates these nice bar charts completely automated. So what we have done here is that we took this raw data from park files and converted that into nice insights. So to summarize um the AI agents when you use them to analyze big data you get rapid insights in minutes in a self-service manner. You can generate new ideas um and to monetize the big data and it really makes it easy to consume the AWS analytic services just using natural language queries. I hope this was helpful. Uh thank you so much for watching the video.

Original Description

An AI Agent that performs big data analytics by using strands tools and tools from MCP server to query large and many parquet files in Amazon S3 using AWS Glue and Amazon Athena. It demonstrates the power of using natural language to perform research on big data, or ask ad-hoc questions to generate insights. Learn more at - http://go.aws/4njdjJU Subscribe to AWS: https://go.aws/subscribe Sign up for AWS: https://go.aws/signup AWS free tier: https://go.aws/free Explore more: https://go.aws/more Contact AWS: https://go.aws/contact Next steps: Explore on AWS in Analyst Research: https://go.aws/reports Discover, deploy, and manage software that runs on AWS: https://go.aws/marketplace Join the AWS Partner Network: https://go.aws/partners Learn more on how Amazon builds and operates software: https://go.aws/library Do you have technical AWS questions? Ask the community of experts on AWS re:Post: https://go.aws/3lPaoPb Why AWS? Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud. Millions of customers—including the fastest-growing startups, largest enterprises, and leading government agencies—use AWS to be more agile, lower costs, and innovate faster. #AWS #AmazonWebServices #CloudComputing #strands #agents #bedrock #anthropic #claude #Kiro #Glue #Athena
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Amazon Web Services · Amazon Web Services · 0 of 60

← Previous Next →
1 Agentic AI Design Patterns Introduction and walkthrough | Amazon Web Services
Agentic AI Design Patterns Introduction and walkthrough | Amazon Web Services
Amazon Web Services
2 Galileo on modernizing on banking infrastructure | Amazon Web Services
Galileo on modernizing on banking infrastructure | Amazon Web Services
Amazon Web Services
3 Alliander Speeds Innovation and Energy Transition Using AWS | Amazon Web Services
Alliander Speeds Innovation and Energy Transition Using AWS | Amazon Web Services
Amazon Web Services
4 AWS and Scuderia Ferrari HP streamline F1 power unit assembly | Amazon Web Services
AWS and Scuderia Ferrari HP streamline F1 power unit assembly | Amazon Web Services
Amazon Web Services
5 How AWS machine learning supports Scuderia Ferrari HP pit stops | Amazon Web Services
How AWS machine learning supports Scuderia Ferrari HP pit stops | Amazon Web Services
Amazon Web Services
6 Nasdaq Builds Market Infrastructure of the Future with AWS | Amazon Web Services
Nasdaq Builds Market Infrastructure of the Future with AWS | Amazon Web Services
Amazon Web Services
7 AWS Security Hub Exposure Findings | Amazon Web Services
AWS Security Hub Exposure Findings | Amazon Web Services
Amazon Web Services
8 How do I use Session Manager port forwarding to connect to my EC2 instance through RDP?
How do I use Session Manager port forwarding to connect to my EC2 instance through RDP?
Amazon Web Services
9 How do I extend an EBS volume with LVM partitions?
How do I extend an EBS volume with LVM partitions?
Amazon Web Services
10 AWS Graviton makes it easy to optimize performance, cost, and sustainability | Amazon Web Services
AWS Graviton makes it easy to optimize performance, cost, and sustainability | Amazon Web Services
Amazon Web Services
11 Run Cloud Adoption Framework workshops with Miro | Amazon Web Services
Run Cloud Adoption Framework workshops with Miro | Amazon Web Services
Amazon Web Services
12 Getting Started with AWS Cost Optimization Hub | Amazon Web Services
Getting Started with AWS Cost Optimization Hub | Amazon Web Services
Amazon Web Services
13 Why did my Amazon SQS messages get sent to a dead-letter queue?
Why did my Amazon SQS messages get sent to a dead-letter queue?
Amazon Web Services
14 Declarative Policies for EC2 | Amazon Web Services
Declarative Policies for EC2 | Amazon Web Services
Amazon Web Services
15 How do I troubleshoot IAM permission issues for the Billing and Cost Management console?
How do I troubleshoot IAM permission issues for the Billing and Cost Management console?
Amazon Web Services
16 Integrity at Scale: Inside the Flo Health Mission | Amazon Web Services
Integrity at Scale: Inside the Flo Health Mission | Amazon Web Services
Amazon Web Services
17 Fueling Success: Small shifts, powerful performance | Amazon Web Services
Fueling Success: Small shifts, powerful performance | Amazon Web Services
Amazon Web Services
18 WEX enhances customer experience with AI-powered chatbot | Amazon Web Services
WEX enhances customer experience with AI-powered chatbot | Amazon Web Services
Amazon Web Services
19 Accelerate troubleshooting with Amazon CloudWatch investigations | Amazon Web Services
Accelerate troubleshooting with Amazon CloudWatch investigations | Amazon Web Services
Amazon Web Services
20 Why is my Windows WorkSpace stuck in the starting, rebooting, or stopping status?
Why is my Windows WorkSpace stuck in the starting, rebooting, or stopping status?
Amazon Web Services
21 Telemetry Pipelines for AI | Amazon Web Services
Telemetry Pipelines for AI | Amazon Web Services
Amazon Web Services
22 Getting Control over Security and Observability Data | Amazon Web Services
Getting Control over Security and Observability Data | Amazon Web Services
Amazon Web Services
23 The Problem with Telemetry Data Volume | Amazon Web Services
The Problem with Telemetry Data Volume | Amazon Web Services
Amazon Web Services
24 Telemetry Pipelines on AWS | Amazon Web Services
Telemetry Pipelines on AWS | Amazon Web Services
Amazon Web Services
25 What are Telemetry Pipelines? | Amazon Web Services
What are Telemetry Pipelines? | Amazon Web Services
Amazon Web Services
26 Using AI for RegEx on Telemetry Pipelines | Amazon Web Services
Using AI for RegEx on Telemetry Pipelines | Amazon Web Services
Amazon Web Services
27 Multi-Session Support in the AWS Console | Amazon Web Services
Multi-Session Support in the AWS Console | Amazon Web Services
Amazon Web Services
28 How CloudHedge delivers assessment with AWS ISV Tooling Program at no cost?
How CloudHedge delivers assessment with AWS ISV Tooling Program at no cost?
Amazon Web Services
29 How customers speed up migration and modernization to AWS with CloudHedge | Amazon Web Services
How customers speed up migration and modernization to AWS with CloudHedge | Amazon Web Services
Amazon Web Services
30 Chaos Experiment with Amazon ElastiCache | Amazon Web Services
Chaos Experiment with Amazon ElastiCache | Amazon Web Services
Amazon Web Services
31 Amazon S3 Access Points: Easily manage access for shared datasets on S3 | Amazon Web Services
Amazon S3 Access Points: Easily manage access for shared datasets on S3 | Amazon Web Services
Amazon Web Services
32 ElastiCache Valkey 8.0 - Savings and Efficiency | Amazon Web Services
ElastiCache Valkey 8.0 - Savings and Efficiency | Amazon Web Services
Amazon Web Services
33 Pennymac scales document processing with AWS | Amazon Web Services
Pennymac scales document processing with AWS | Amazon Web Services
Amazon Web Services
34 AWS | Next Level Innovation | Amazon Web Services
AWS | Next Level Innovation | Amazon Web Services
Amazon Web Services
35 Driving Cloud Innovation: Mindtickle's Partnership with AWS Enterprise Support | Amazon Web Services
Driving Cloud Innovation: Mindtickle's Partnership with AWS Enterprise Support | Amazon Web Services
Amazon Web Services
36 A Leader's Edge from Executive Insights | Amazon Web Services
A Leader's Edge from Executive Insights | Amazon Web Services
Amazon Web Services
37 How do I create a custom Amazon WorkSpaces image?
How do I create a custom Amazon WorkSpaces image?
Amazon Web Services
38 Charles Leclerc tests his AI-generated race track | Amazon Web Services
Charles Leclerc tests his AI-generated race track | Amazon Web Services
Amazon Web Services
39 Redington Scales India’s Cloud Access with AWS Partnership | Amazon Web Services
Redington Scales India’s Cloud Access with AWS Partnership | Amazon Web Services
Amazon Web Services
40 How do I prevent the resources in my CloudFormation stack from getting deleted or updated?
How do I prevent the resources in my CloudFormation stack from getting deleted or updated?
Amazon Web Services
41 How do I troubleshoot authentication errors when I use RDP to connect to an EC2 Windows instance?
How do I troubleshoot authentication errors when I use RDP to connect to an EC2 Windows instance?
Amazon Web Services
42 Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Amazon Web Services
43 Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Amazon Web Services
44 AWS at the FORMULA 1 AWS GRAN PREMIO DELL'EMILIA-ROMAGNA 2025 | Amazon Web Services
AWS at the FORMULA 1 AWS GRAN PREMIO DELL'EMILIA-ROMAGNA 2025 | Amazon Web Services
Amazon Web Services
45 What's new in RCPs | Amazon Web Services
What's new in RCPs | Amazon Web Services
Amazon Web Services
46 API Caching using Amazon ElastiCache | Amazon Web Services
API Caching using Amazon ElastiCache | Amazon Web Services
Amazon Web Services
47 Pendula: Amazon Nova Customer Testimonial | Amazon Web Services
Pendula: Amazon Nova Customer Testimonial | Amazon Web Services
Amazon Web Services
48 InDebted : Amazon Nova Customer Testimonial | Amazon Web Services
InDebted : Amazon Nova Customer Testimonial | Amazon Web Services
Amazon Web Services
49 Amazon DynamoDB global tables with multi-Region strong consistency | Amazon Web Services
Amazon DynamoDB global tables with multi-Region strong consistency | Amazon Web Services
Amazon Web Services
50 Siemens Mobility uses AWS to operate securely, efficiently on a global scale | Amazon Web Services
Siemens Mobility uses AWS to operate securely, efficiently on a global scale | Amazon Web Services
Amazon Web Services
51 How do I reuse a knowledge base session in Amazon Bedrock?
How do I reuse a knowledge base session in Amazon Bedrock?
Amazon Web Services
52 EP5: MBZUAI, CMU : Causal AI, Answering The “Why“ and “What if“ Questions | AWS for AI Podcast
EP5: MBZUAI, CMU : Causal AI, Answering The “Why“ and “What if“ Questions | AWS for AI Podcast
Amazon Web Services
53 Hema scales time to market developing a data mesh on AWS (Technical) - Cloud Adventures
Hema scales time to market developing a data mesh on AWS (Technical) - Cloud Adventures
Amazon Web Services
54 Hema scales time to market developing a data mesh on AWS (Business) - Cloud Adventures
Hema scales time to market developing a data mesh on AWS (Business) - Cloud Adventures
Amazon Web Services
55 How Langfuse Scaled Their AI Platform with AWS: From Open-Source to Enterprise | Amazon Web Services
How Langfuse Scaled Their AI Platform with AWS: From Open-Source to Enterprise | Amazon Web Services
Amazon Web Services
56 SLMs and LLMs: What’s the Difference? | Amazon Web Services
SLMs and LLMs: What’s the Difference? | Amazon Web Services
Amazon Web Services
57 SLMs and LLMs: When to use them? | Amazon Web Services
SLMs and LLMs: When to use them? | Amazon Web Services
Amazon Web Services
58 SLMs on CPU | Amazon Web Services
SLMs on CPU | Amazon Web Services
Amazon Web Services
59 Intelligent Model Routing | Amazon Web Services
Intelligent Model Routing | Amazon Web Services
Amazon Web Services
60 SLMs, LLMs, and Model Routing in Agents | Amazon Web Services
SLMs, LLMs, and Model Routing in Agents | Amazon Web Services
Amazon Web Services

This video teaches how to build an AI agent to perform big data analytics using Amazon Web Services, including AWS Glue, Amazon Athena, and large language models. It demonstrates the power of natural language to perform research on big data and generate reports. By following this lesson, viewers can learn how to use these tools to analyze large datasets and generate insights.

Key Takeaways
  1. Build an AI agent to explore big data
  2. Use AWS Glue to crawl and catalog data
  3. Use Amazon Athena to query big data
  4. Use large language model to generate research reports
  5. Identify five different industry verticals that will benefit from the data
  6. Monetize the data in those industries
  7. Break down research topic into smaller topics and subtopics
  8. Invoke tools such as AWS, AWS Glue, and Amazon Athena to execute SQL queries and get results
  9. Pass results to large language model to create rest of report
  10. Write markdown research report using file write tool
💡 The video showcases the power of natural language to perform research on big data and generate reports, highlighting the potential of AI agents to automate and accelerate data analysis tasks.

Related Reads

📰
Terraform Cloudflare DNS Checklist Before Every Apply
Learn a checklist to ensure correct Terraform Cloudflare DNS configuration before applying changes to prevent potential downtime
Dev.to · Oleksandr Kuryzhev
📰
Building a Windows Laptop Monitoring Agent with Webex and Email Alerts
Learn to build a Windows laptop monitoring agent with Webex and email alerts for real-time notifications
Dev.to · sam codex
📰
What Is Infrastructure as Code? A Beginner's Guide
Learn the basics of Infrastructure as Code (IaC) and how to manage servers and cloud resources with code
Dev.to · Muskan Bandta
📰
I just released SKTR, a deterministic architecture review CLI
Learn about SKTR, a deterministic architecture review CLI for reviewing Git changes and how to use it to improve code quality
Dev.to · Pablo Rubianes 🇺🇾
Up next
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Watch →