In a retrieval system, metadata filtering enforces fine-grained access within a tenant: tag documents with security attributes, then filter results against the requesting user’s attributes before the AI sees them. section 4.6.2
Use it alongside tenant isolation and, for frequently changing permissions, real-time authorization. Stale indexed permissions can leave a window of unauthorized access; real-time checks reduce that risk but add latency. section 4.6.2




