In this repository we will learn how to build a Knowledge Base with AWS.
Here you can find more about this repository.
Configure your account id:
- goto
bin/knowledgebase.ts
- change
YOUR_ACCOUNT_ID
indefaultStackProperties
.
Install Dependencies
npm i
Deploy the solution:
npx cdk deploy --all
Once everything is deployed:
- go to your AWS Account
- go to the lambda function
resolveQuestion
- invoke it with test event
{"question":"How to reset password?"}
You can also add your own documents to documents
and just redeploy knowledgebase-example-agent-knowledgebase
.
This will trigger a startIngestionJob
, which will re-index your knowledge base with the new documents.