

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Retrieval Augmented Generation
incomplete
2: What Is Search?
incomplete
3: Project Overview
incomplete
4: Keyword Search
incomplete
5: Text Processing
incomplete
6: Punctuation
incomplete
7: Tokenization
incomplete
8: Stop Words
incomplete
9: Stemming
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Before we get deep into the advanced techniques of RAG, let's start with more "basic" search. That way, we can understand the benefits of the features we'll build on top of it. Keyword search is exactly what it sounds like: we check whether the user's search terms exist in our dataset and return matching results.
Many modern search systems, including RAG systems, use keyword search as a foundational component. It's fast, simple, and effective for many use cases.
The more technical and precise the terminology is in a given domain, the more powerful keyword search becomes! For example:
Medical Search – Precision Desired
Movie Search – Generalization Desired
Let's make our search command actually work!
I'm not going to be overly prescriptive about your file and directory structure. I'll describe the expected behavior. If you'd like to follow my structure, check the solutions after each step.
Searching for: QUERY
1. Movie Title 1
2. Movie Title 2
3. Movie Title 3
...
Notice that this search is case-sensitive and matches only exact substrings. Don't worry, we'll improve it soon enough!
Run and submit the CLI tests.