aws avatar

Storing And Querying Vectors

This walks you through Amazon S3 Vectors, AWS's cost-effective vector storage service for embeddings you don't need to query constantly. It covers the full workflow from creating buckets and indexes to storing and querying vectors, with clear decision points on when to use OpenSearch instead (high QPS, hybrid search). The skill is thorough about immutable configuration gotchas like dimension and distance metric choices, and it handles the Bedrock integration for generating embeddings. Good for RAG systems where you need cheap long-term storage with occasional queries. The troubleshooting table actually covers the common IAM permission trip-ups with the s3vectors namespace.

skills.sh installs
7K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Backend & APIs, AI & Agent Building, Marketing & SEO, Cloud & Infrastructure, Databases
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 56
1aws avataringesting-into-data-lakeaws/agent-toolkit-for-awsImport data into the AWS data lake from S3 files, local uploads, JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS, Aurora), Amazon Redshift, Snowflake7Kskills.sh installs
2github avatarcreate-web-formgithub/awesome-copilotCreate robust, accessible web forms with best practices for HTML structure, CSS styling, JavaScript interactivity, form validation, and server-side processing. 7Kskills.sh installs
3aws avatarconfiguring-vpc-endpoints-for-private-aws-service-accessaws/agent-toolkit-for-awsConfigures VPC endpoints (interface and gateway) for private AWS service access using AWS PrivateLink. Use when setting up secure private connectivity to S3, Dy6.8Kskills.sh installs
4upstash avatarcontext7-mcpupstash/context7This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation6.8Kskills.sh installs
5jeffallan avatarsql-projeffallan/claude-skillsOptimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex 6.8Kskills.sh installs
6clickhouse avatarclickhouse-managed-postgres-rcaclickhouse/agent-skillsMUST USE when investigating performance issues on a ClickHouse-managed Postgres instance. Provides an evidence-based RCA workflow that scrapes the Prometheus en6.8Kskills.sh installs