Back to technology news
General Technology

Amazon S3 Vectors now supports metadata pre-filtering for higher recall on filtered searches

Today, Amazon S3 Vectors announced metadata pre-filtering, a feature that evaluates metadata filters before performing similarity search to deliver higher recall on filtered queries. The feature applies to vector indexes in ENHANCED mode, where filters are resolved first and the search runs only over matching vectors. Existing indexes operate in CLASSIC mode, where filter evaluation occurs during the search. Pre-filtering is available at no additional cost and requires no re-ingestion or query changes.

Each vector in an S3 Vectors index can carry up to 2 KB of filterable metadata, and a single query supports up to 100 filter constraints. Filters evaluate on attributes such as tenant, category, status, or time, with prefix matching available via the $startsWith operator for paths, URLs, and hierarchical keys. Common use cases span legal and professional services, financial services, media and entertainment, and agentic applications, where results must be both relevant and correctly scoped to a user, account, or category.

In a support knowledge base of 8 million tickets, filtering by customer_id before similarity search reduces the candidate set from the full index to only that customer's tickets. Before pre-filtering, queries drew candidates from the full 8 million, resulting in fewer matching tickets returned. On highly selective filters, pre-filtering returns up to 5x more of the matching vectors than CLASSIC mode, ensuring agents and retrieval-augmented generation applications see more of the relevant material for the task at hand.

To enable pre-filtering, users call UpdateIndexMode on an existing index to switch from CLASSIC to ENHANCED mode. The change takes effect in place without re-ingesting vectors or altering queries. Once validated, the default index mode on the vector bucket can be set to ENHANCED so new indexes use the mode automatically. The feature is rolling out across commercial AWS Regions and AWS China Regions where Amazon S3 Vectors is available.

A single query supports up to 100 filter constraints, counted per value the filter evaluates. If a query exceeds this limit, users can consolidate filters—for example, replacing a 300-value $in over legal cases with a single caseId field—or split queries into smaller batches, run them in parallel, and merge results by distance. Indexes created in vector buckets on or after September 30, 2026 use ENHANCED mode by default; earlier buckets use CLASSIC until the bucket default is set.

Metadata pre-filtering is now available at no additional cost in all commercial AWS Regions where Amazon S3 Vectors is available, and in the AWS China Regions. Users pay standard S3 Vectors pricing for storage, PUT requests, and queries. For full pricing details and regional availability, users can visit the Amazon S3 pricing page and the Amazon S3 Vectors Regions and quotas page. The feature enables scoping RAG applications to one tenant, agent searches to one user's documents, or catalog searches to a licensing window without trading away recall.

Source credits

By Daniel Abib from AWS News Blog. Edited by SetuGeo.

More technology news

Browse all technology news