I replaced 50 lines of code with a single LLM prompt
11–20 of 45 posts
Re: I replaced 50 lines of code with a single LLM prompt
#12So you replaced 50 lines of code with a service call to a service that burns massive amounts of electricity/cooling capacity, certainly runs slower, and adds a service dependency that could break on a whim without your knowledge? And that’s a win?
I think this is a cute use case. I've recently outsourced categorizing the titles of user created tutorials into groups by relative similarity, to great effect. Took a few minutes.
It's definitely a win in my book.
Re: I replaced 50 lines of code with a single LLM prompt
#13Good luck debugging cases it gets wrong. LLMs seeping into cases that have one valid solution will bring so many new problems to random customers.
> 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.
Re: I replaced 50 lines of code with a single LLM prompt
#14So you replaced 50 lines of code with a service call to a service that burns massive amounts of electricity/cooling capacity, certainly runs slower, and adds a service dependency that could break on a whim without your knowledge? And that’s a win?
Re: I replaced 50 lines of code with a single LLM prompt
#15Is this for real? The author didn't bother to use or even consider the excellent free tools available straight from USPS for exactly this purpose ( https://www.usps.com/business/web-tools-apis/ ) and instead went straight to the LLM prompt?
Re: I replaced 50 lines of code with a single LLM prompt
#16So you replaced 50 lines of code with a service call to a service that burns massive amounts of electricity/cooling capacity, certainly runs slower, and adds a service dependency that could break on a whim without your knowledge? And that’s a win?
50 lines of code that were never going to work with great accuracy. Sure, it absolutely might be a win. It depends on just how much accuracy they needed in the checking system in question. It's also worth noting that one could utilize both. The assumed fast, low cost 50 lines of code on your server that takes care of the easy 97%. And then throw GPT4 at the stray hard cases. It requires being able to correctly identi…
Re: I replaced 50 lines of code with a single LLM prompt
#17Edit: The USPS even runs a program called CASS for this exact purpose. While you may not need to CASS certify yourself, you can either follow its rules or use a service that follows CASS to guarantee your results are accurate.
Re: I replaced 50 lines of code with a single LLM prompt
#18Re: I replaced 50 lines of code with a single LLM prompt
#19Re: I replaced 50 lines of code with a single LLM prompt
#20Earlier quoted context omitted.
50 lines of code that were never going to work with great accuracy. Sure, it absolutely might be a win. It depends on just how much accuracy they needed in the checking system in question. It's also worth noting that one could utilize both. The assumed fast, low cost 50 lines of code on your server that takes care of the easy 97%. And then throw GPT4 at the stray hard cases. It requires being able to correctly identi…
Great accuracy as tested to a continually changing black box. GPT hits are also expensive and often have unpredictable latency. This would have to be integration tested to detect changes to GPT answers.
So for example: gpt-4-0314, or gpt-3.5-turbo-0613, etc.
The latency issue is definitely true. Ideally the cost could be limited to a very small percentage of hard cases (which you first have to identify).