CdC-SI / eak-copilot

The official repository of the EAK-Copilot project as part of the Innovation Fellowship 2024.
https://cdc-si.github.io/eak-copilot/
GNU General Public License v3.0
4 stars 0 forks source link

sort fuzzy match results by distance score #178

Closed K-Schubert closed 1 month ago

K-Schubert commented 1 month ago

Description

Sort fuzzy match autocomplete suggestions by descending score (highest first). This allows the best matches to be returned if the config.yaml file specifies a max number of fuzzy match results eg:

autocomplete: fuzzy_match: limit: 5

Here the 5 best fuzzy matches will be returned (if fuzzy match returnes 5 or more results, 5 is the upper bound).