Uploading files
To upload documents directly to an Amazon Q Business application environment, you can use
the AWS Management Console or the BatchPutDocument API operation.
If you use an Amazon Kendra index to retrieve your documents, you can't directly
upload documents.
This procedure is available if you chose the Native retriever
option to configure your application environment. Files can only be uploaded after the Amazon Q Business retriever and index creation process has completed.
The following tabs provide a procedure for the AWS Management Console and code examples for the
AWS CLI.
- Console
-
To upload files
-
Sign in to the AWS Management Console and open the Amazon Q Business
console.
-
Complete the steps to create your Amazon Q Business
application.
-
Complete the steps for selecting an Amazon Q Business
retriever.
-
Then, from the left navigation menu, choose Data
sources.
-
From the Data sources page, choose
Add data source.
-
Then, on the Add data sources page, from
Data sources choose Upload
files.
-
Then, in Upload files, select one of the
following methods to add your files:
-
Drag and drop the document files that you want to
upload.
-
Add your documents to the application environment, and then select
Choose files.
-
After choosing your files, choose
Upload.
You are returned to the Amazon Q Business console while your
documents are uploaded. The console displays a confirmation message
when your documents are successfully uploaded.
- AWS CLI
-
To upload documents directly
aws qbusiness batch-put-document \
--application-id application-id
\
--index-id index-id
\
--documents documents-to-add
\
--data-source-sync-id data-source-sync-id
\
--role-arn roleArn