Metadata filtering is a retrieval technique that applies hard constraints based on document attributes—such as creation date, author, category, or access permissions—to narrow a candidate pool before or after a primary search operation. It is a pre-filtering or post-filtering step commonly used with vector search or keyword search to enforce business logic, data privacy, or temporal relevance. By reducing the search space, it improves retrieval efficiency and ensures results comply with specific contextual rules, a critical capability in enterprise agentic systems.
