AWS Builder Center
Keyword search vs embeddings on my own notes

Keyword search vs embeddings on my own notes

I tested both ways of searching my study notes, and the winner depends on the question you ask.

Software Engineer
I keep my AIF-C01 study notes in one folder now, and last week I built a tiny search over them just to see what actually works. Nothing fancy, just two ways of finding an answer: plain keyword search, and embeddings that match meaning instead of exact words.
Keyword search won every time I knew the exact term. When I searched for CRC64NVME or p95 latency, it found the right note in seconds. It is fast, it is cheap, and it never guesses. But it fell apart the moment I asked a question in my own words. Searching for "how do I stop my bill going up" found nothing, even though my notes on Budgets and Cost Explorer were right there.
Embeddings handled those questions much better. They understood that "bill going up" and "cost control" are the same idea, and they pulled up notes I would never have found by keyword alone. The trade off is that they sometimes bring back notes that sound related but are not quite right, and they cost more to run.
So here is the setup I landed on. I check filenames first, because a good filename already tells me the topic. Then I run keyword search for exact terms, and embeddings when the question is fuzzy. I read the top 3 results together instead of trusting only the first one, because the answer is often split across chunks.
If you are building a study assistant or a small RAG app, my honest advice is to start with keyword search. It is the baseline that tells you whether the harder setup is even worth it. Add embeddings when your users start asking questions in their own words, which they will.
What has worked better for you, keyword search, embeddings, or a mix of both? And if you mix them, how do you decide which result to trust when they disagree?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article