This is sample project shows how to build a scalable similarity questions search Engine using Amazon Sagemaker, Amazon Elasticsearch, Amazon Elastic File System (EFS) and Amazon ECS.
You can use knn-search.ipynb
to transform and index dataset to Elasticsearch.
The following must be done before following this guide:
- Setup an AWS account.
- Configure the AWS CLI with user credentials.
- Install AWS CLI.
- jq.
Create a ECR repo in ECS console, copy repo url and build docker.
$docker build -t YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com/knnsearch .
$eval $(aws ecr get-login --region ap-southeast-2 --no-include-email)
$docker push YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com/knnsearch
$cd cf-templates
$bash deploy-infra.sh
$bash create-task.sh
$bash deploy-service.sh