Lesson 1226 of 1455
Why AI Search Beats Keyword Search (Embeddings Explained)
Old search needed your exact words. AI search understands meaning. The trick is called 'embeddings' and you can use it in your own projects.
Builders · AI Foundations · ~5 min read
The big idea
An embedding is a list of ~1,500 numbers that represents the 'meaning' of a piece of text. Two pieces of text with similar meanings have similar embeddings, even if they share no words. That's how 'happy puppy' can match 'joyful dog' in AI search — the words differ, the meaning vectors are close.
Some examples
- Spotify's recommendations work this way: every song has an embedding; songs with nearby embeddings get recommended.
- Notion AI search uses embeddings: 'find my notes about anxiety' matches notes that say 'stress' or 'overwhelmed' even without the word 'anxiety.'
- OpenAI's text-embedding-3-small costs $0.02 per million tokens — cheap enough that hobby projects are free.
- Vector databases (Pinecone, Chroma, Weaviate) store and search embeddings; they're how every 'chat with my docs' app works.
Try it!
Sign up for OpenAI API access ($5 free credit). Run their embedding example (10 lines of Python) on a CSV of your own notes. Then do a similarity search. You just built the core of every modern AI search engine in an afternoon.
Key terms in this lesson
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 40 min
RAG Explained — Why Some AIs Can Quote Your Notes
RAG (Retrieval-Augmented Generation) lets AI work with documents it didn't train on. Most school AI tools use it.
Builders · 25 min
AI Pet Namer Capstone
Use everything you've learned to design the ultimate pet-naming AI.
Builders · 40 min
What a Token Actually Is (And Why It Matters for Your Prompts)
AI doesn't read words — it reads tokens. Knowing the difference makes you a better prompter.
