Create FAQ and Query
A 3-step recipe with Amazon Kendra. We can help you get access.
Recipe · 3 steps
Create FAQ and Query
with Amazon Kendra
Create an FAQ from an S3 file, wait for ACTIVE, then query for answers.
- Create the FAQ from the supplied S3 input file. The FAQ begins in the CREATING state while Kendra ingests the question/answer pairs.
- Poll the FAQ until ingestion completes. The FAQ reports CREATING while it is being built and ACTIVE once its answers are searchable.
- Run the search query against the index so the newly loaded FAQ answers can surface as QUESTION_ANSWER result items.
What you'll need to have ready
- indexId: The identifier of the index to add the FAQ to.
- faqName: The name to associate with the FAQ.
- s3Path: The S3 location of the FAQ input data.
- roleArn: The IAM role ARN granting Kendra access to the S3 file.
- fileFormat: The format of the FAQ input file, CSV, CSV_WITH_HEADER, or JSON.
- description: An optional description for the FAQ.
- queryText: The search query to run once the FAQ is active.
For your developer
Arazzo workflow amazon-kendra:create-faq-and-query, 3 operations: CreateFaq → DescribeFaq → Query. Specs on APIs.io.