Voiced by Amazon Polly |
Introduction
Amazon Q is a generative AI-powered assistant capable of answering questions, providing summaries, generating content, and completing tasks securely. In an earlier blog post titled Amazon Q: All That You Wanted to Know, we discovered how Amazon Q can be a powerful tool for various applications.
In this follow-up post, we’ll demonstrate how to create a chat assistant with Amazon Q service by integrating it with many AWS services. You will learn how to make the chat assistant scan an S3 bucket with documents like PDF, CSV, or any kind of files; and answer end-user questions relevant to the document uploaded in the S3 bucket.
You can follow these steps for implementing Amazon Q with AWS S3 Service.
Explore and Interpret Information in an Interactive Visual Environment
- No upfront cost
- Row level security
- Highly secure data encryption
Step 1: Provide Access To User
Provide the user with the required access to Amazon Q and S3 by adding the policies below.
-
- AmazonQFullAccess
- AmazonS3FullAccess
Step 2: Create an S3 Bucket
Create an S3 Bucket and upload documents like CSV, docx, html, Json, pdf, PPT, etc.
Step 3: Create an Amazon Q Application
-
- Go to Amazon Q -> Select Amazon Q Business Lite -> Choose Subscribe in Amazon Q Business
- Choose Application -> Create Application
- Provide the application name, e.g., “My ChatBot”
- Creating a new service role with any name, e.g., “QBusiness-MyQApplication-Role.”
- Click on Create
Step 4: Select your Retriever
-
- Under Retriever -> choose Use native Retriever
- Under Index provisioning ->choose Enterprise -> change the Number of Units to “1”
- Click on Next
Step 5: Select Your Data Source
-
- Under Data Source -> Choose Amazon S3
- Provide a Data source name, g., “MyQAppDS.”
- Under IAM -> Choose Create a new service role -> role name e.g “QBusiness-DataSource-AmazonQ-DataSource”
- Under Sync Scope -> Choose Your S3 bucket created in Step 1
- Under Sync Run schedule -> Choose Run on Demand
- Leave the rest of all other values as default
- Click on Add data source
- Click on Finish
Step 6: Manage Access
-
- Click on Add Groups and Users.
- Choose Add and Assign new users -> Click next
- Add a new user, e.g., “test user.”
- Click Add -> click on Assign
- Under Web experience settings -> click on Create and use a new service role, eg., “QBusiness-WebExperience-web-service-role”
- Click Done
Step 7: Sync Data Source
-
- Go to Amazon Q -> Applications -> Click on your Application
- Select your data source
- Click on Sync Now
- Observe the last Sync time and the document count
Step 8: Preview Web Experience
-
- Go to Amazon Q -> Application -> Select your Application
- Click on Preview Web Application
- Ask a question (relevant to the uploaded documents in S3)
Congratulations, you have now successfully implemented Amazon Q with S3. You can also deploy your application further if required.
Save Time and Money with Automated and Customizable Data Insights
- Highly Scalable
- Cost- effective
- Smart Visualizations
About CloudThat
CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.
CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner,AWS Training Partner,AWS Migration Partner,AWS Data and Analytics Partner,AWS DevOps Competency Partner,AWS GenAI Competency Partner,Amazon QuickSight Service Delivery Partner,Amazon EKS Service Delivery Partner, AWS Microsoft Workload Partners,Amazon EC2 Service Delivery Partner,Amazon ECS Service Delivery Partner,AWS Glue Service Delivery Partner,Amazon Redshift Service Delivery Partner,AWS Control Tower Service Delivery Partner,AWS WAF Service Delivery Partner and many more.
To get started, go through our Consultancy page and Managed Services Package,CloudThat’s offerings.
WRITTEN BY Sindhu Priya M
Click to Comment