aws avatar

Storing And Querying Vectors

Cost-effective long-term vector storage and similarity search on Amazon S3 Vectors, with OpenSearch recommended for high-QPS workloads.

CCM score
78 of 100
skills.sh installs
7.3K
GitHub stars
3.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating vector buckets and indexes, generating embeddings with Bedrock, putting and querying vectors, and troubleshooting common errors
  • Includes CLI commands for create-vector-bucket, create-index, put-vectors, and query-vectors, plus references for metadata filtering and multi-tenant patterns
  • Enforces that index dimension, distance metric, and non-filterable metadata keys are confirmed up front, since they cannot be changed after creation
  • Designed for RAG and semantic search workloads with infrequent queries; hybrid search and sustained high QPS are routed to OpenSearch

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill storing-and-querying-vectors -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Store and Query Vectors with Amazon S3 Vectors

Overview

Amazon S3 Vectors is a cost-effective AWS service for storing and querying vector embeddings at scale. Optimized for long-term storage with subsecond latency for cold queries, as low as 100ms for warm queries.

Decision Guide

  • Hundreds/thousands of sustained queries per second (QPS): Wrong tool. Recommend OpenSearch.
  • Hybrid search, aggregations, faceted search: Recommend OpenSearch with S3 Vectors as storage engine. For OpenSearch integration, search AWS docs for "Using S3 Vectors with OpenSearch Service".
  • Tiered (bulk + hot): S3 Vectors for storage + OpenSearch Serverless for real-time. See references/limits-and-patterns.md.
  • Cost-effective storage, infrequent queries, RAG: S3 Vectors is the right fit. Proceed.

For latest guidance, search AWS docs for "S3 Vectors best practices".

Common Tasks

Classify the request before starting:

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Databases, AI Agents & LLM Apps
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 54

Similar to Storing And Querying Vectors

More Databases