Engineering brief

Why Your AI Analyst Can't See Everything: The Permission Problem

AI Engineer3 min read · saves 15 min

At a glance

The brief is enough

Relevance
Practical value
Radar
Time horizon
Now
Warnings
None

Bridgewater's vault of 100M documents showed that naive post-filtering for AI search fails. Turbopuffer's native filtering achieves 120ms latency at 450M vectors—a pattern worth understanding for any team building permissioned AI access.

Scaling AI access to private data requires search engines that respect permissions without sacrificing performance.

Watch if you're building AI access to private documents with complex permissions at scale.

Summary

The problem. Bridgewater Associates built a vault of 100 million documents—internal research, meeting notes, third-party reports—each with its own permission rules. Their AI analyst, meant to answer questions like "Why have token prices fallen?", needed to respect those permissions. Naively, they tried post-filtering: search all vectors, then discard results the user couldn't see. Recall collapsed.

Why naive fails. At 100 million documents, even a fast in-memory scan takes seconds per query. Post-filtering returns too few relevant results because the query's nearest vectors rarely belong to the user's allowed set. Users knew documents existed but the AI couldn't surface them. Bridgewater saw this break in production.

The engineering solution. Turbopuffer's native filtering inverts the approach. Their vector index automatically clusters similar vectors into groups of roughly 200. Permissions are indexed per cluster: if a user has access to even one document in a cluster, that cluster is searchable. At query time, the engine first selects eligible clusters (pre-filter), then scans only those clusters for nearest neighbors. This avoids the performance hit of scanning all allowed documents.

Production results. Across 450 million vectors (from 100 million documents with multiple embeddings), turbopuffer achieves a P90 latency of 120 milliseconds. The cost advantage comes from storing cold data on S3 and caching hot segments on SSD or memory. Bridgewater's production deployment confirms the pattern works at scale—a rare real-world validation for permissions-aware vector search.

Tradeoffs and gaps. Turbopuffer acknowledges nested group permissions remain difficult to handle automatically. Organizations with deeply nested hierarchies may need custom logic. Additionally, rebuilding permission indexes when access changes is not discussed—a critical operational detail for dynamic organizations. The talk focuses on search, not on how the AI agent itself interprets results.

What leaders should take away. The core insight is durable: post-filtering permissions in vector search is a combinatorial trap. Any team building internal AI tools should test recall at their target document count. If recall degrades, they likely need a search engine that bakes permissions into indexing, not just into query results. This is infrastructure, not a feature toggle.

My take

I appreciate the clarity on why post-filtering fails. The clustering approach is elegant, but I'd want to see more about how permissions updates are handled, reindexing clusters when access changes is non-trivial. Also, the nested groups limitation is a real edge case for many orgs. Still, this is a concrete pattern teams should evaluate when their AI tools start hitting access control bottlenecks. The talk is a useful reality check for any team assuming their vector database handles permissions out of the box.

What to do with this

  1. Test recall on your vector search with post-filtering vs native filtering using a 1% sample of your document set.
  2. Map your permission model to filter expressions before choosing a search engine.
  3. Ask your search vendor: how do you handle permissions reindexing when user access changes?

Watch the video

This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.

Related breakdowns

Get TL;DW

Too Long; Didn't Watch.

A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.

Free. Weekly. No hype.

Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.