KNOWLEDGE, EMBEDDINGS & RAG • 114 / 397
Teach models to look up relevant information before answering.
Cosine Similarity
Cosine similarity compares the direction of two vectors and is commonly used to score semantic closeness.
Think of it like
Think of Cosine Similarity like a library system: instead of memorizing every book, find the right shelf and bring only the useful pages to the desk.
Real life
Search engines and recommendation systems use ideas related to Cosine Similarity.
SRE lens
A retriever can rank runbook chunks by cosine similarity to the incident query.
Remember thisCosine similarity compares the direction of two vectors and is commonly used to score semantic closeness.