I replaced 50 lines of code with a single LLM prompt - eviltoast
  • superfes@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I’ve never done Levenshtein on numbers, it seems like a silly thing to do.

    Somehow I had skipped over that part of the text, danke.

    • Lvxferre@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Yup - it’s stupid. The catch is that text is yet another example of people hyping generative bots and trying to “sell” the idea as the solution for everything and a bit more; and one of the ways to do that is to make the alternative look worse than it is, for example incorrectly using the other tools at your disposal.

      Even then I wouldn’t use fuzzy string matching here, it’s bound to introduce more false positives than it’s worth. Such as Ant Street and Aunt Street matching (Levenshtein distance = 1). In those cases it’s simply better to say “dunno”.