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
- AWS Lambda to interact with Amazon Kendra SDK.
- AWS API Gateway to expose api endpoint and integrate with the lambda.
- AWS CDK to provision the infrastructure.
npm install
And you need to update the kendra index configuration in the ./bin/kendra-query-api.ts
file.
cdk bootstrap
cdk deploy
Now you can query the kendra index by sending get request to
https://<api_gateway_url>/?queryText=<queryText>&pageNumber=1
You can use kendra-ui-example as a starting point to build a UI interacting with the query api endpoint.