This lesson is being remade with real tools (a real database, the real AI model). The new video and its detailed notes appear here as soon as they are ready.
Video coming soonThis lesson’s video is being made
Start with the notes below; the video appears here as soon as it is on YouTube.
Generative AI Engineering · Lesson 35 of 90
RAG 5: keyword search and BM25
lexical searchinverted indexterm frequencydocument frequencyTF-IDFBM25k1 and b parameterstokenising for searchstemmingexact-match queries (codes, names)when keywords beat vectors