Definition & Explanation
Embeddings are dense vector representations of text where semantically similar content is placed close together in a high-dimensional space. AI coding tools use embeddings to index codebases and find semantically relevant code snippets when you ask a question. For example, when you ask "how does authentication work?", the tool finds code related to authentication even if it doesn't contain those exact words.