概念 · 基于 AIF-C01
Choosing and configuring a vector store
Pick the vector store by scale, latency, cost, filtering and the stack you already run.
本课尚未翻译,暂以英文显示。
你在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.
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
| Store | Fits when | Watch for |
|---|---|---|
| OpenSearch | Hybrid search at scale | Cluster or OCU cost |
| Aurora, RDS pgvector | Vectors with SQL rows | One writer scales up, not out |
| S3 Vectors | Huge, less active data, low cost | About 100 ms at best |
| Neptune Analytics | Graph links plus vectors | Graph model needed |
| DocumentDB | Documents already there | Fewer search features |
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
| Store | Fits when | Watch for |
|---|---|---|
| OpenSearch | Hybrid search at scale | Cluster or OCU cost |
| Aurora, RDS pgvector | Vectors with SQL rows | One writer scales up, not out |
| S3 Vectors | Huge, less active data, low cost | 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
| Store | Fits when | Watch for |
|---|---|---|
| Neptune Analytics | Graph links plus vectors | Graph model needed |
| DocumentDB | Documents already there | Fewer search features |
是什么
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.
是什么
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.
是什么
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.
要记住
- 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.
要记住
- A new embedding model means a new index.
考试中
- “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.
本任务内容 · 1.1
- S3 as the ML data lake
- Choosing storage: S3, EFS, EBS, FSx and transfer tools
- Extracting data from databases and search
- Data formats: Parquet, ORC, Avro, CSV, JSON, RecordIO
Kinesis Data Streams
Firehose
Managed Flink
MSK
- Troubleshooting ingestion and storage capacity
Catalog and Lake Formation
- Merging data from multiple sources
- Choosing and configuring a vector store
OpenSearch
- Aurora and RDS PostgreSQL with pgvector
- Ingesting text, image, audio and video
- Ingesting data into SageMaker Feature Store