This repository showcases how to utilize pgvector, an open-source PostgreSQL extension for vector similarity search. pgvector is designed to work seamlessly with other PostgreSQL features, including indexing and querying, making it a powerful tool for various applications. This repository contains sample code demonstrating various use cases leveraging pgvector on Amazon Aurora PostgreSQL-Compatible Edition, Amazon Bedrock and Generative AI. For more details, please refer to the following:
- AWS blog post: Leverage pgvector and Amazon Aurora PostgreSQL for Natural Language Processing, Chatbots and Sentiment Analysis.
- AWS Workshop: Generative AI Use Cases with Aurora PostgreSQL and pgvector.
Here are some exciting use cases covered in this repository:
- Product Recommendations 🛒
- Retrieval Augmented Generation (RAG) 🔄
- Semantic Search and Sentiment Analysis 🧠
- Knowledge Bases for Amazon Bedrock with Aurora PostgreSQL 📚
- Movie Recommendations using Aurora ML and Amazon Bedrock 🎬
To get started, clone the repository and follow the setup instructions provided in the respective directories for each use case.
git clone https://github.com/aws-samples/aurora-postgresql-pgvector.git
cd aurora-postgresql-pgvector
This repository is intended for educational purposes and does not accept further contributions. Feel free to utilize and enhance the sample code based on your own requirements.
The use cases and sample code with pgvector and Aurora PostgreSQL is released under the MIT-0 License.