Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use levenshtein distance (fuzzy search) for model names #182

Open
Efreak opened this issue Aug 30, 2023 · 0 comments
Open

use levenshtein distance (fuzzy search) for model names #182

Efreak opened this issue Aug 30, 2023 · 0 comments

Comments

@Efreak
Copy link
Contributor

Efreak commented Aug 30, 2023

there's a library at taleinat/levenshtein-search that can be used for levenshtein searching.

An alternative is just filtering the list by the characters used, but for only a few characters this won't be useful, and won't help with putting most relevant results on top. (with levenshtein, sort by distance to get most relevant results on top)

reasoning: i keep typoing sdxl as sexl because my fingers are a bit off on my tablet (fun fact, touch typing hurts more than it helps on a mobile device). another common one is hitting the n key instead of the space key, and in termux i keep having to redo my cut buffer because i accidentally hit the wrong key :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant