DEV Community

Cover image for Create Generative AI assistant with Amazon Q
Vuong Bach Doan
Vuong Bach Doan

Posted on

5 2 2 2 2

Create Generative AI assistant with Amazon Q

Purpose

Create an AI assistant that tailor your specific business, codebase, data, and operations by further training it on an organization’s own information.

Here’s an example of how you can use Amazon Q with personalized data provided by you:

Image description

As demonstrated, I can inquire about my personal details. This information was supplied by me during the setup phase for Q. Now, let’s delve into how you can create your own assistant.

Hand-on steps

1. Setting up SSO

Follow up the instructions to setting SSO from AWS document at this link:

AWS instruction link

In the IAM Identity Center metadata section, choose Download to download the IAM Identity Center SAML metadata file. You will need in later section.

Don’t skip step setting mapping attribute Email to ${user:email}

2. Create Q application

Image description

Choose a name for your application ➡ For easier, choose Create and use a new service role ➡Next.

Image description

Leave default, click Next.

Image description

Choose a data source to contain data that will be used to provide information. Select S3

  • In Name - Data source name enter unique name for your datasource.
  • In IAM role, choose Create a new service role.
  • In Sync scope, choose S3 bucket that you will contain updated information for application.
  • In Sync run schedule-Frequency, choose any timestamp you want to sync data.
  • Leave other fields as default.

Image description

Click Finish to complete creation.

3. Deploy Q application

Find Web experience settings in application details page.

Image description

  • In Choose a method to authorize Amazon Q, choose Create and use a new service role.
  • Upload XML file you have downloaded when setting SSO.

🎉 All done, find public URL in detail page and share to others.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay