Metadata & Filters
Design the metadata each chunk carries, put permissions and time in the store's query on every path, predict how many results a filter leaves, and let a model fill a schema without letting it set trusted fields.
Last updated
After this section you can
- Sort a chunk’s metadata into filter, boost and carry fields, and say who may set each one
- Predict how many rows a filter leaves in your store, and choose how it should run and what to index
- Show that one user cannot retrieve another’s documents, on every path, with a test that tries to break it
Metadata & Filters: Who May Retrieve What
The index can be searched. Now decide who may retrieve what, and show that the rule holds.
A filter decides which chunks may be ranked at all; similarity only orders what it lets through. Build the hard filters (tenant, permissions, dates) from the verified user and the clock, put them in the store’s query on every path, never in your code after the fetch, and let a model suggest only soft ones.
Wider than your screen? Scroll sideways.