|
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
WRITTEN BY Sindhu Priya M
Sindhu Priya M is a Technical Lead at CloudThat, specializing in Development, Infra-Management and DevOps. With 6+ years of experience in training and consulting, she has trained over 1000+ professionals to upskill in Architecture, Development and DevOps. Known for simplifying complex concepts, hands-on teaching, and industry insights, she brings deep technical knowledge and practical application into every learning experience. Sindhu's passion for development technology reflects in her unique approach to learning and development.
Login

October 8, 2024
PREV
Comments