ladderlore
  • Type a service name, like S3 or IAM.

Concept · Builds on AIF-C01

Choosing and configuring a vector store

Pick the vector store by scale, latency, cost, filtering and the stack you already run.

You know from AI Practitioner

  • A vector database finds items by meaning, which RAG uses to fetch passages.
  • OpenSearch can store embeddings and search them by similarity.
  • Aurora PostgreSQL can store vectors next to relational rows.
Read the AI Practitioner lesson
  • OpenSearch

    Fits when
    Hybrid search at scale
    Watch for
    Cluster or OCU cost
  • Aurora, RDS pgvector

    Fits when
    Vectors with SQL rows
    Watch for
    One writer scales up, not out
  • S3 Vectors

    Fits when
    Huge, less active data, low cost
    Watch for
    About 100 ms at best
  • Neptune Analytics

    Fits when
    Graph links plus vectors
    Watch for
    Graph model needed
  • DocumentDB

    Fits when
    Documents already there
    Watch for
    Fewer search features
Five stores, where each fits and what to watch.

1 / 2

  • OpenSearch

    Fits when
    Hybrid search at scale
    Watch for
    Cluster or OCU cost
  • Aurora, RDS pgvector

    Fits when
    Vectors with SQL rows
    Watch for
    One writer scales up, not out
  • S3 Vectors

    Fits when
    Huge, less active data, low cost
    Watch for
    About 100 ms at best

2 / 2

  • Neptune Analytics

    Fits when
    Graph links plus vectors
    Watch for
    Graph model needed
  • DocumentDB

    Fits when
    Documents already there
    Watch for
    Fewer search features
Five stores, where each fits and what to watch.
Low cost, occasional queries?
Vectors with SQL rows?
Graph links?
S3 Vectors
Aurora, RDS pgvector
Neptune Analytics
OpenSearch
yesnoyesnoyesno
A quick path to the likely store.

What it is

Several AWS services store vectors. Amazon OpenSearch Service gives fast k-NN search with filters, keyword search and hybrid queries at large scale. Aurora or RDS for PostgreSQL with pgvector adds vectors to a relational database. Amazon S3 Vectors is a vector bucket with vector indexes: it is built for low-cost storage and sub-second queries, about 100 milliseconds for frequent queries, and it suits large archives that are queried less often. Amazon Neptune Analytics combines graph and vector search. Amazon DocumentDB offers vector search on documents.

What it is

Decide with five questions. How large is the data? How fast must queries answer? What does it cost to keep and query? Do queries filter on metadata or join with rows? Which store does the team already run? A search-heavy app with hybrid queries points to OpenSearch. Vectors that belong with SQL rows point to pgvector. Billions of vectors and occasional queries point to S3 Vectors.

What it is

One rule holds for every store: the index dimension must equal the output size of the embedding model. A mismatch makes writes or queries fail. If you change the embedding model, you re-embed the data and build a new index, because vectors from different models cannot be compared.

Remember

  • OpenSearch: fast k-NN, filters and hybrid search at scale.
  • pgvector: vectors and SQL rows in one database.
  • S3 Vectors: lowest cost, sub-second queries, large and less active data.
  • Neptune Analytics: graph relationships plus vectors. DocumentDB: vectors on documents.
  • Index dimension must equal the embedding model output size.

Remember

  • A new embedding model means a new index.

On the exam

  • “Vectors must join with customer rows in one SQL query” points to Aurora or RDS with pgvector.
  • “Cheapest store for a huge archive of embeddings with occasional queries” points to Amazon S3 Vectors.
  • “Hybrid keyword and semantic search at high query rates” points to OpenSearch.