🕸️Semantic Code Search
Also known as Natural Language Code Search, Code Embedding Search, Code Embedding
Finding code by what it means. A plain question finds the right function.
Think of it like
It is like asking for a book on dogs. You get one called Puppy Care.
Example
Jack asks where do we check passwords. Search returns verifyLogin, which never uses the word password in its name.
Why it matters
Code is often named in ways you would not guess. Meaning-based search finds it anyway.
Definition
Common mistake
Key takeaways
- 1By meaning. Not by matching words.
- 2Code as numbers. Embeddings place code by meaning.
- 3Closest wins. Results are ranked, not exact.