← Back to Glossary
Metadata Filtering
Phase 03 · RAGtechnique

Restricting vector searches using structured tags (like user ID, date range, or category) alongside embedding similarity.

Why it exists

Prevents retrieving outdated files or unauthorized tenant data in enterprise applications.

How it works

Queries pass structured boolean filters (e.g. tenant_id == 42 AND year >= 2024) applied before or during vector search.

Where you'll use this