Home icon

Visualize vector embeddings stored in Amazon Aurora PostgreSQL and explore semantic similarities

Database Blog



This article discusses how to visualize vector embeddings stored in Amazon Aurora PostgreSQL and explore their semantic similarities. It covers the integration of PostgreSQL's pgvector extension with Amazon Bedrock to generate and visualize vector embeddings.

Specifically, the article covers:

  • An overview of the solution to visualize vector embeddings using Principal Component Analysis (PCA)
  • Prerequisites for the solution, including an Aurora PostgreSQL cluster, Bedrock access, and Python libraries
  • Step-by-step implementation details:
    • Preparing a sample dataset
    • Generating vector embeddings using Amazon Bedrock's Titan Text Embeddings model
    • Storing data and embeddings in an Aurora PostgreSQL table with pgvector
    • Reading data from PostgreSQL and performing PCA for dimensionality reduction
    • Plotting a 3D scatter plot to visualize semantic similarities
  • Cleanup steps to delete the resources created
  • Conclusion highlighting the benefits of this solution for exploring semantic similarities


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

Sep 5
2025
Automating vector embedding generation in Amazon Aurora PostgreSQL with Amazon Bedrock
May 7
2026
Query billion-scale vectors with SQL: Integrating Amazon S3 Vectors and Aurora PostgreSQL
Oct 31
2024
Load vector embeddings up to 67x faster with pgvector and Amazon Aurora
Oct 11
2024
Dive deep into vector data stores using Amazon Bedrock Knowledge Bases

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.