Embeddings & vector databases

An embedding turns a piece of text into a list of numbers that captures its meaning. A vector database stores these, so you can search by meaning, not just exact words.

Everyday analogy

A library arranged by meaning instead of alphabet: books about "puppies" and "dogs" sit on the same shelf even though the words are different.

Example

Search "how many holidays do I get?" and it finds the page titled "Annual leave policy", even though no word matches.

📄Documentspolicies, FAQs🔢Embedtext → numbers🗄️Vectordatabasestored by meaning❓Questionalso embedded🎯Nearestmatchesfound by meaning
Embeddings let you search by meaning: "holidays" finds "annual leave".

Try it yourself

About 10 min

Find meaning, not words

  1. Ask an AI chatbot: Rank these by how similar they are to 'car': automobile, banana, vehicle, carpet, truck.
  2. Ask it to explain why carpet is far away even though it contains 'car'.
  3. Think of a search at work that would benefit from meaning-based search.

What you should see: Embeddings compare meaning, so 'automobile' is close to 'car' and 'carpet' is not.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectBuild a document Q&A assistant (RAG, no code)About 60 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.