Creating an Amazon Q Business retriever
To select a Amazon Q Business retriever, you can use either the AWS Management Console, or the CreateIndex and CreateRetrieverAPI operations.
The following tabs provide a procedure for the AWS Management Console and code examples for the AWS CLI.
- Console
-
To create an Amazon Q retriever
-
Sign in to the AWS Management Console and open the Amazon Q console at https://console.aws.amazon.com/amazonq/business/
. -
Complete the steps to create your Amazon Q application.
-
Then, for Select retriever, choose Use native retriever – Build an Amazon Q Business retriever for your Amazon Q Business application. This option creates an Amazon Q Business index that can connect to the Amazon Q Business supported data sources that you choose.
Note
Available data sources when you select this option include all Amazon Q supported data connectors and direct document upload.
-
In Index provisioning, do the following:
-
Choose between Starter and Enterprise index types based on your use case. For more information on index types, see Index types.
-
For Number of units – Choose the Number of units that you need. Amazon Q charges you based on the document capacity that you choose. If you choose an Enterprise index, You can choose up to 50 units. If you choose a Starter index, you can choose up to 5 units. Each unit is 20,000 documents or 200 MB, whichever is reached first. For more information on index provisioning pricing, see Amazon Q Business pricing
.
-
-
For Tags – Choose whether you want to add Index tags.
-
To create your retriever and index, choose Create.
-
- AWS CLI
-
To create an Amazon Q index
aws qbusiness create-index \ --application-id
application-id
\ --display-namedisplay-name
\ --descriptionindex-description
\ --capacity-configuration units=<index-capacity-units>
\ --typeENTERPRISE | STARTER
To create an Amazon Q retriever
aws qbusiness create-retriever \ --application-id
application-id
\ --display-namedisplay-name
\ --typeNATIVE_INDEX
\ --role-arnroleArn
\ --configurationnativeIndexConfiguration="{indexId=<created-index-id>}" \
--tagstags