find_duplicates
Retrieve likely duplicate issues for a given text, returning flagged candidates for review.
Instructions
Retrieve likely-duplicate candidates for a new issue's text.
Returns the k nearest issues, each flagged for whether it cleared the
threshold. The threshold is an uncalibrated heuristic -- see the caveat
field -- so treat flagged items as candidates to read, not as confirmed
duplicates, and cite issue numbers when reporting them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| text | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caveat | No | The similarity threshold is a HEURISTIC, not a calibrated decision boundary. This corpus has no labelled duplicate pairs, so no threshold has been validated against ground truth. `above_threshold` means 'cosine similarity exceeded the value you passed', nothing more. Judge each candidate from its title and snippet. | |
| threshold | Yes | ||
| candidates | Yes | ||
| n_above_threshold | Yes | ||
| cited_issue_numbers | Yes |