Building with AILesson 41 of 80

Module 4 · Retrieval and the knowledge problem

Permissions, freshness and metadata: the boring half that leaks data

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 10 of 11 in this chapter

This chapter’s goalBuild a retrieval pipeline from raw documents to a ranked set of chunks (embed, index, fuse with keyword search, rerank, filter by permission) measure its recall on a gold set of your own questions, and say from cost and quality numbers whether a given corpus should be retrieved or simply placed in the context window.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The leak nobody tests for

The day a company indexes its shared drive, the salary spreadsheet in the HR folder becomes a chunk, in the same index as the lunch menu, with the same standing. The folder had permissions. The index does not. Any question that happens to be close to that chunk’s embedding retrieves it, and the model summarises it helpfully for whoever asked.

This is not an exotic attack. It is the default behaviour of a retrieval pipeline built without thinking about it, and it has happened at companies with security teams. The mechanism is simple: an index is a copy, and a copy does not inherit the controls on the original.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Permissions, freshness and metadata: the boring half that leaks data’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/permissions-freshness-and-metadata (Accessed: 29 November 2026).