Public Engineering Legal Confidential Query vector
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

RAG Access Control: Permission-Filtered Retrieval Simulator

A retrieval-augmented generation pipeline is only as safe as its access control. This simulator lays out 180 document chunks in a 3D embedding space, grouped into three topics but tagged with four permission tiers — Public, Engineering, Legal and Confidential — so that chunks about the same subject cluster together in space no matter who is allowed to read them. Pick which permission tiers the current user holds, fire a query, and compare three real retrieval strategies used by production vector databases: an insecure "no filter" top-K search that lets unauthorized chunks leak straight into the LLM's context, a metadata pre-filter that restricts the index before ranking, and a post-filter-with-backfill pass that scans deeper into the ranked list to replace blocked hits with the next authorized chunk. Live counters track how many chunks were scanned, how many blocked chunks were skipped, and — the metric that matters — how many unauthorized chunks actually leaked into the delivered result.