Day 2 of 1460 minExploit Architect
Day 2: Embeddings, Chunking and Similarity Search
Taught by Mr Elite Updated
By the end of today you can
- Explain how an embedding model turns text into vectors and how distance becomes a similarity score
- Chunk a document with different sizes and overlaps and predict which chunk a query will return
- Read top-k results and scores, and explain what a threshold and a metadata filter change
- Record retrieval behaviour in a way you can reuse for attack testing later
Picture a tester who has a RAG assistant in scope. They upload a document, ask a question they know it answers, and get a vague reply that ignores it. Later a different query pulls that same document up perfectly. Nothing is broken. The retrieval layer simply decided, by arithmetic, that one chunk was closer than another.
Every attack in this course depends on that arithmetic. To plant a document that gets retrieved, or to prove a leak, you must be able to predict what comes back. Today you build that intuition by running real queries against a local index and watching the scores.
In this lesson
- How text becomes a vector and a score
- Chunking decides what can be found
- Watch me do it: index, query and read the scores
- Top-k, thresholds, hybrid search and filters
- Your turn: predict before you run
Premium course
$27 one-time, lifetime access
This day is part of the full course. Unlock it to read every lesson, do every mission and track your progress to the end.