4 ms·
ive tried gpt4 for simple things and ended up doing it myself. Simple regex for matching whether an url is a link to the root of the domain or is some page. Tol
by skor 4y ago
ive tried gpt4 for simple things and ended up doing it myself. Simple regex for matching whether an url is a link to the root of the domain or is some page. Told it several times to try again and it failed.
How are you folks looking beyond something that is so simple and should be correct always to be useful? How does it save you time if any small detail may be a potential problem?
- all2 4y agoI suspect that regex is very much like mathematics for these models: they're just bad at it. If you provided the model failure cases for each failed attempt, you might get better output. I've also seen folks say that requiring reasoning makes answers more robust as well.