Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.11 KB

File metadata and controls

39 lines (23 loc) · 1.11 KB

Kendra Query API Example

Amazon Kendra is a highly accurate and easy to use enterprise search service that’s powered by machine learning. This example demostrates how to build a query api endpoint for Amazon Kendra.

The stack uses

Prerequisites

Set up

npm install

And you need to update the kendra index configuration in the ./bin/kendra-query-api.ts file.

Deploy

cdk bootstrap
cdk deploy

Usage

Now you can query the kendra index by sending get request to

https://<api_gateway_url>/?queryText=<queryText>&pageNumber=1

UI Example

You can use kendra-ui-example as a starting point to build a UI interacting with the query api endpoint.