Hacker News new | ask | show | jobs
by failuser 1018 days ago
Good luck debugging cases it gets wrong. LLMs seeping into cases that have one valid solution will bring so many new problems to random customers.
2 comments

> I spent an entire afternoon writing string-matching heuristics, regular expressions, and even implementing Levenshtein distance to answer the simple question, "is this address the same as that one?"

> But then, on a lark, I replaced all that code – 50+ lines in all – with a single call to GPT. And within ten minutes and just a few lines of code, I hit 100% accuracy against my test suite!

They could write an extra layer or two to preprocess and match obvious easy ones, and also to sanity-check the LLM's output for hard ones.

The cases are mostly string matching and string patterning. I can't see the debug cases as wildly varying.

OP - You can also, as a double blind, use Google maps api calls which will return you a fully fledged address.