find_similar
Search for code semantically similar to a given snippet or code block.
Instructions
Code semantically similar to a snippet you already have, dense search only: use it before writing a function, to check whether something like it exists. search is the one to call when you can describe the need in words instead. Snippets are cut at 2000 chars.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Max results. | |
| source | No | Source name. Omit when only one source applies. | |
| snippet | Yes | Code block to match; cut at 2000 chars. |