Home icon

Automating vector embedding generation in Amazon Aurora PostgreSQL with Amazon Bedrock

Database Blog



This article explores five approaches for automating vector embedding generation in Amazon Aurora PostgreSQL using Amazon Bedrock, providing strategies for maintaining up-to-date vector representations of text data.

  • Approach 1: Direct synchronous calls using database triggers and aws_ml extension
  • Approach 2: AWS Lambda orchestrated synchronous calls with database triggers
  • Approach 3: Asynchronous Lambda invocation with database triggers
  • Approach 4: Amazon SQS queue with Lambda batch processing
  • Approach 5: Periodic updates scheduled with pg_cron extension

Key considerations include API rate limits, token limits, cost implications, latency requirements, and database performance. Each approach offers unique trade-offs between complexity, real-time consistency, and scalability.

The recommended approach depends on specific application requirements, with options ranging from simple synchronous triggers to more complex queue-based batch processing systems.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Oct 24
2024
Visualize vector embeddings stored in Amazon Aurora PostgreSQL and explore semantic similarities
Dec 6
2024
Amazon Aurora now available as a quick create vector store in Amazon Bedrock Knowledge Bases
Nov 6
2024
Amazon MSK now supports vector embedding generation using Amazon Bedrock
Jul 9
2025
Query Amazon Aurora PostgreSQL using Amazon Bedrock Knowledge Bases structured data

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.