Codele / LLMs, RAG and agentic AI
Embeddings and vector search
Turn every document into a list of numbers, turn the question into numbers the same way, and the best matches are the nearest dots. It searches by meaning, not by matching words.
- An embedding turns a text into a list of numbers, a place on a map of meaning.
- The question is turned into numbers the same way, then we find the nearest document dots.
- This searches by meaning, so a question can match a document that shares none of its words.
- Nearest means similar, not true. The top match can still be the wrong text, so results need checking.
- This is a toy: our map has 2 numbers and hand-made places. Real ones have hundreds of numbers made by a trained model.
Loading the playable lesson…