AI engineering roadmap
Retrieval
Finding the right text for a question: keyword search, vector search, fusing them, and feeding the result to a model. 3 topics, about 10 hours.
Keyword, dense and hybrid search
About 4 h.
- Score documents with BM25 by hand, including idf and length normalisation
- Rank by embedding similarity and say when it beats keywords
- Fuse rankings with Reciprocal Rank Fusion and rerank the top results
Visualisers: Retrieval and RAG
Chunking and RAG
About 3 h.
- Compare fixed, overlapping, sentence and heading chunking on one document
- Assemble a RAG prompt with numbered sources and ask for citations
- Explain why an answer is only as good as what was retrieved
Visualisers: Retrieval and RAG
Vector indexes (HNSW)
About 3 h.
- Explain how HNSW's layers make search fast
- Trade recall for speed with M and ef
- Measure recall@k against brute force
Visualisers: HNSW vector search