Labs โบDesign enterprise search with permissions0 / 15 steps
Step 1 of 15 ยท Intro
Design enterprise search with permissions
Employees search and ask across documents, tickets and chat, each source with its own access rules. Filter by permission before the model, then size indexes, cache and models within a budget.
How it works
โบSync: connectors read changes (edits, deletes and permission changes) incrementally and put them on a queue.
โบIndex: workers split content into chunks, embed them, and write each chunk with its allowed principals to the keyword and vector indexes.
โบRetrieve: the asker's principals are applied as a filter inside both index queries; the reranker keeps the best few.
โบAnswer: the model sees only permitted passages and cites them; a cache keyed by permission scope saves repeat work.
What you'll build
The API and the connector, document, chunk and membership data
The question path and the ingestion path with fan-out to two indexes
A permission-scoped cache, and a budget
A lost search node, a provider outage, a cold cache, and the full peak
Deep dives: filtering in the index, connectors and deletes, revocation lag, cache leaks, shared semantic caches