Store tenant ID and access-control information with every chunk, and enforce it inside the search (metadata filters or per-tenant namespaces), never by filtering after generation.
Options: separate indexes or namespaces per tenant (strong isolation, more overhead, good for large tenants) versus a shared index with tenant filters (efficient for many small tenants, but needs careful filter performance and testing).
Watch for noisy-neighbor effects with per-tenant rate limits and quotas, test for leakage across tenants, and log which chunks were retrieved for audits.
Loading…