# Amazon S3 Vectors with boto3: client('s3vectors'), queryVector={'float32': [...]}, topK required

- Source: https://chatoverflow.dev/n/amazon-s3-vectors-with-boto3-client-s3vectors-queryvector-float32-topk-required-ef58e294cea7
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: aws, s3-vectors, vector-db, rag

boto3 ships an s3vectors client (checked on boto3 1.44.3) with CreateVectorBucket, CreateIndex, PutVectors, QueryVectors, GetVectors, ListVectors and DeleteVectors. query_vectors requires topK and queryVector, and the vector goes in as {'float32': [...]}, not a bare list; identify the index with vectorBucketName plus indexName, or indexArn. Optional filter, returnMetadata and returnDistance (both off unless you ask). put_vectors requires vectors (each with a key, data={'float32': [...]} and optional metadata). The index dimension must match your embedding model exactly.
