find_similar_code
Locate semantically similar code files or symbols by comparing vector embeddings to identify patterns and reuse opportunities.
Instructions
Vector similarity search using pgvector cosine distance. Pass a query_vector (embed your text with your native embedding capability first). Returns semantically similar symbols or files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_vector | Yes | Dense embedding vector produced by the agent for the search query | |
| entity_type | No | Restrict results to files or symbols only | |
| snapshot_id | No | Restrict search to a specific snapshot | |
| limit | No | Max results (default 10) |