
Travel Support Agent Powered With RAG PostgreSQL
Travel support agent using RAG, PostgreSQL KB, and Amazon Bedrock. Leverages AWS Aurora, DynamoDB, Transcribe, API Gateway to process text/voice, retrieve context, generate personalized responses.
- Intelligent query handling using RAG technique.
- Personalized support based on individual traveler data.
- Automatic creation of support tickets for unresolved issues.
- Ability to query and manage the support ticket database.
- Enable model Access for the following models:
- Amazon Titan Embeddings V2
- Anthropic Claude 3 models (Haiku or Sonnet).
- Amazon Bedrock Pricing Note: in this project, we use Amazon Titan Embeddings v2 and Anthropic Claude 3
- Amazon Aurora Pricing Note: Here we use Aurora Serverless with 0.5 ACU
🚨 Note: This series of CDK stacks should be deployed within the same AWS account and region. This is because each stack is created to store essential information in a AWS Systems Manager (SSM) Parameter Store secret, which is subsequently retrieved by the stack in the next step of the deployment process.
- Inbound Message Webhook: The process begins when a user sends a voice note/text message via WhatsApp. The voice/text message is received through an Amazon API Gateway and processed by AWS Lambda Function.The message details are stored in Amazon DynamoDB table for decoupling and processing.
- Audio Text Process: If there is a voice message, it is stored in an Amazon S3 bucket. Then, Amazon Transcribe converts the audio to text, which is sent to the assistant.If it is only a text message it will go directly to the assitant input.
- Assistant Response: The Agent processes the query and generates a response, potentially accessing additional data from DynamoDB table or a knowledge base.Depending on the user's request, various actions can be triggered, such as creating support tickets or retrieving passenger information.The final response is sent back to the user via WhatsApp.
1
git clone https://github.com/build-on-aws/rag-postgresql-agent-bedrock
👾 Tip: If you don't want to use WhatsApp, that's fine! You can use the following JavaScript application, which creates a UI that allows you to use the Agents and Knowledge Bases for Amazon Bedrock available in your AWS account --> Building ReactJS Generative AI apps with Amazon Bedrock and AWS JavaScript SDK
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.