Skip to content

Amazon Bedrock with Knowledge Base and Lambda using SST

Notifications You must be signed in to change notification settings

merojosa/bedrock-knowledge-base

Repository files navigation

Amazon Bedrock architecture with Knowledge Base and Lambda using SST

This is a proof of concept that uses Amazon Bedrock to create a chatbot.

It uses:

  • SST to deploy everything to AWS.
  • Pinecone as vector database to use the free tier and avoid charges (you can use OpenSearch or a different vector database).
  • Lambda functions in Python via boto3 to communicate to Amazon Bedrock.

Architecture

Get started

Setup your IAM credentials: https://docs.sst.dev/advanced/iam-credentials

Create a .env in the root of the project with the Pinecone crendentials:

PINECONE_API_KEY=your_api_key
PINECONE_CONNECTION_STRING=your_host

Execute the following commands with pnpm:

pnpm install
pnpm bundle-prompt
pnpm bundle-sync-kb
pnpm sst deploy --stage dev

About

Amazon Bedrock with Knowledge Base and Lambda using SST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published