ExitAmazon Aurora vs Amazon OpenSearch Service: choosing a RAG vector store1 / 7
Explanation

Start with the data, not just the vectors

When relational data integration favors Aurora PostgreSQL and when search-centric retrieval requirements favor OpenSearch Service. · associate

In Retrieval Augmented Generation (RAG), a retriever finds relevant content and supplies it as context to a language model. A vector store holds embeddings, numerical representations used to find content with similar meaning. Both Aurora PostgreSQL and Amazon OpenSearch Service support vector retrieval. The choice depends on what retrieval must do alongside similarity search.

Aurora PostgreSQL is a strong starting point when retrieval belongs inside an existing relational application. With the pgvector extension, embeddings can live alongside content and business data. SQL can combine similarity search with filters and joins to related tables—for example, finding relevant product instructions while checking the product's current status.

The advantage is relational integration: the application can use its existing data model and database transactions rather than maintain a separate search copy solely for vector retrieval. This does not make embeddings automatically current; when source text changes, the application still needs to generate and save the corresponding new embedding.