ladderlore
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Vector databases

A store that finds items by meaning, which RAG needs to look up the right passages.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Question
Embeddings and vectors
Vector database
Nearest passages
  1. 1The question is turned into an embedding.
  2. 2The vector database finds the nearest vectors.
  3. 3The matching passages go back to the application.
A vector database returns the stored items closest in meaning.

အဆင့်ဆင့်

  1. 1The question is turned into an embedding.
  2. 2The vector database finds the nearest vectors.
  3. 3The matching passages go back to the application.

A vector database returns the stored items closest in meaning.

  • OpenSearch

    You need search and analytics, with keyword and vector search together.
  • Aurora

    Your data is already in Aurora PostgreSQL and you want vectors beside it.
  • RDS

    Your data is already in RDS for PostgreSQL.
  • Neptune

    Your data is a web of links between things.
  • Amazon S3 Vectors

    You want low-cost storage for a large set of vectors that is searched less often.
  • Amazon DocumentDB

    Your data is JSON documents and you want vectors beside them.
  • Amazon ElastiCache

    You need very fast vector search, for example a cache of earlier answers.
AWS services that can store embeddings.

1 / 2

  • OpenSearch

    You need search and analytics, with keyword and vector search together.
  • Aurora

    Your data is already in Aurora PostgreSQL and you want vectors beside it.
  • RDS

    Your data is already in RDS for PostgreSQL.
  • Neptune

    Your data is a web of links between things.

2 / 2

  • Amazon S3 Vectors

    You want low-cost storage for a large set of vectors that is searched less often.
  • Amazon DocumentDB

    Your data is JSON documents and you want vectors beside them.
  • Amazon ElastiCache

    You need very fast vector search, for example a cache of earlier answers.
AWS services that can store embeddings.

ဘာလဲ

An embedding is a list of numbers that captures the meaning of a text, image or other item. Items with similar meaning get similar numbers. A vector database stores these embeddings and answers one question quickly: which stored vectors are closest to this one? Closeness is often measured with cosine similarity, which compares the direction of two vectors.

This is how RAG finds passages. The question is turned into an embedding. The vector database returns the nearest chunks, even if they share no words with the question. A normal keyword search cannot do that.

ဘာလဲ

On AWS you do not need a brand-new kind of database. Several services you may already use can store and search vectors: Amazon OpenSearch Service, Amazon Aurora, Amazon RDS for PostgreSQL, Amazon Neptune Analytics, Amazon DocumentDB and Amazon ElastiCache. Amazon S3 Vectors is a newer, low-cost choice. Pick the one that matches the data you already keep.

မှတ်ထားရန်

  • A vector database stores embeddings and finds the nearest ones to a query.
  • It searches by meaning, not by exact words.
  • RAG needs one to retrieve the passages that go into the prompt.
  • Amazon OpenSearch Service: search and analytics with vectors.

မှတ်ထားရန်

  • Amazon Aurora and Amazon RDS for PostgreSQL: relational data with vectors. Amazon Neptune Analytics: graph-based RAG.
  • Amazon S3 Vectors: low cost. Amazon DocumentDB: JSON documents. Amazon ElastiCache: very fast search.

စာမေးပွဲမှာ

  • “Store embeddings to support similarity search for RAG” points to a vector database.
  • “Which AWS services can store vector embeddings?” points to Amazon OpenSearch Service, Aurora, RDS for PostgreSQL, Neptune Analytics, DocumentDB, ElastiCache and S3 Vectors.
  • “Cheapest place for a very large set of vectors” points to Amazon S3 Vectors.