fuzzy_match
Score candidate strings against a query using the Sorensen-Dice coefficient over character bigrams, returning best matches in descending order. Use for deduplication, record linkage, typo-tolerant lookup.
Instructions
Score every candidate string against a query using the Sorensen-Dice coefficient over character bigrams and return the best matches in descending order. Deterministic. Useful for deduplication, record linkage, typo-tolerant lookup and confirming which of several candidates was meant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | How many results (default 5) | |
| needle | Yes | The string to match against the list | |
| haystack | Yes | Candidate strings | |
| threshold | No | Minimum score to include (default 0) |