AiTeky Original Interactive Learning & Practice Advanced
Search with vectors and graphs: finding by meaning, at speed, and across links
Turn words into vectors that capture meaning, find neighbours fast with an inverted-file index and see its recall, combine keyword and vector search, answer multi-hop questions with a knowledge graph, size a vector service with quantisation, and evaluate search with nDCG and MRR.
Search is the first half of almost every AI assistant that uses your own documents: before a model can answer, something has to find the right pieces of text. Keyword search finds the words you typed. Vector search finds text with the same meaning, even when it uses other words. A knowledge graph finds things connected by links, such as the products that depend on a late supplier. Each fails in its own way, and an engineer's job is to know where, and to measure it.
The retrieval-augmented generation course shows how search feeds a language model. This course goes underneath: what a vector is and where meaning comes from, how an index finds nearest neighbours without scanning everything, why a product code defeats a vector and a synonym defeats a keyword, how a graph answers a question that no single document contains, how much memory and money a service needs, and how to measure whether a search is any good.
We build every piece in plain Python with numpy, pandas and scikit-learn so that you can see it work in your browser: word counts and a small matrix factorisation (latent semantic analysis) stand in for the neural embeddings of a large model, an inverted-file index is written by hand, BM25 is written by hand, and a graph is a dictionary. The ideas are the same ones that big systems use; only the scale and the quality of the embeddings differ.
All the data are simulated with a fixed random seed: 320 help-centre articles in 8 topics, 20,000 random vectors in 100 groups, and a supply chain of 40 suppliers, 120 parts and 30 products. The sizes, prices and memory figures are assumptions flagged in the lessons. A real embedding model will behave differently, so use these lessons for the method and measure your own data.
You need the Python and machine learning courses; the retrieval-augmented generation course is the natural companion.
- Learn lessons explain one idea at a time and let you compute it.
- Industry ready lessons decide and plan. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 50 min Free sample π AiTeky Pass From words to vectors: how a number list can carry meaning Search 320 simulated help articles by keyword and see how often the synonym in the question is missing, build vectors from word counts with a matrix factorisation so that words used in the same company get nearby vectors, measure how many of the right articles each method finds, and see that more dimensions are not always better.
- 02 50 min π AiTeky Pass Finding neighbours fast: brute force, an inverted-file index and recall Find the 10 nearest vectors to 200 searches among 20,000 by checking all of them, then build an inverted-file (IVF) index with k-means, search only the nearest few groups, and measure the recall you give up for each share of the vectors skipped, including when brute force is the right answer.
- 03 50 min π AiTeky Pass Keywords plus vectors: BM25, fusion and routing Write BM25 by hand, search for product codes and for ideas, show that keywords win on codes and vectors win on meaning, combine them with reciprocal rank fusion and see why blind fusion can bury the exact match, and fix it by routing each query to the method that suits it.
- 04 50 min π AiTeky Pass Knowledge graphs: answering questions that live across several facts Turn 469 plain sentences about suppliers, parts and products into triples and a graph, answer a two-hop question exactly by following links, show that a single text search finds none of the answer and that stepwise search depends on how many passages it reads, and link misspelt company names to the right node.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 55 min π AiTeky Pass On the job: sizing a vector search service and shrinking it with quantisation Work out the memory and monthly cost of 10 million vectors at four number sizes, measure on 20,000 vectors how much recall is lost by 16-bit, 8-bit and 1-bit storage with and without re-scoring, and write the sizing recommendation with the assumptions flagged.
- 06 55 min π AiTeky Pass On the job: is the search any good? Judgments, MRR, nDCG and an honest comparison Build a judged test set with three kinds of search, compute reciprocal rank, nDCG and recall at k by hand, compare keyword search, vectors and routing with confidence ranges from resampling the searches, find the searches that fail and why, size the live test that would confirm a gain, and write the report.

