Semantic Search
Semantic Search is a method for extracting targets by finding similar patterns and potential duplicates across your repository.
It uses embeddings to understand the meaning of code rather than just matching text.
What It Does?
- Finds semantically similar code (even if variable names differ).
- Detects duplicates and near-duplicates.
- Supports pattern matching and code similarity checks.
When you click on Semantic Search
, the following page will appear:
Enter a code pattern or keyword in the input box and click Search
.
Artemis will detect and return the most relevant targets matching your query.
Example
Suppose you want to find functions in your codebase that look like a generic function definition. You can follow these steps:
Next steps:
- Evaluate target quality using Artemis scoring. See Code Scoring.
- Index your code for better context-aware suggestions. See Code Indexing.