top | item 41993571

(no title)

scott01 | 1 year ago

Sorry, it’s a bit hard to understand from your blog. I’m a bit dyslexic, so there’s a chance I’ve mussed something obvious, but I couldn’t find any examples beyond ‘explain this short snippet’. Also, are your posts AI assisted? I find it hard to read.

I’ve tried asking ChatGPT questions about how a large codebase works, what entities should I use to implement some feature, etc. After a couple hours I realised the chat was hallucinating like crazy and turned into a yes-man, confirming all questions that assumed a yes-no answer.

discuss

order

rkozik1989|1 year ago

The problem with your example of applying analyzing something as complex and esoteric as a codebase is that LLMs cannot reason they simply return a response based on statistical inference, so unless you followed a standard like PSR for PHP and implemented it to a 't' it simply doesn't have to context to do what you're asking it to do. If you want an LLM to be an effective programmer for a specific application you'd probably need to fine tune and provide it instructions on your coding standards.

Basically, how I've become successful using LLMs is that I solve the problem at a 9,000ft view, instruct the LLM to play different personas, have the personas validate my solution, and then instruct the LLM step-by-step to do all of the monkey work. Which doesn't necessarily always save me time upfront but in the long run it does because it makes fewer mistakes implementing my thought experiment.

scott01|1 year ago

Fair enough, I might be asking too much indeed, and may not be able to come up with an idea how LLMs can help me. For me, writing code is easy as soon as I understand the problem, and I sometimes spend a lot of time trying to figure out a solution that fits well within the context, so I thought I could ask an LLM what different things do and mean to help me understanding the problem surface better. Again, I may not understand something, but, at this point, I don’t understand what’s the value of code generation after I know how to solve a problem.

Do you happen to have a blog post or something showing a concrete problem that LLM helped you to solve?

simonw|1 year ago

In both cases there I linked to index pages that reference several years of accumulated content. None of that content is written by AI (with the exception of an occasional sentence completed by GitHub Copilot while I was typing).

I suggest reading this article for a recent example of how I use LLMs for code: https://simonwillison.net/2024/Oct/18/openai-audio/