←back to thread

358 points andrewstetsenko | 2 comments | | HN request time: 0.436s | source
Show context
taysix ◴[] No.44360808[source]
I had a fun result the other day from Claude. I opened a script in Zed and asked it to "fix the error on line 71". Claude happily went and fixed the error on line 91....

1. There was no error on line 91, it did some inconsequential formatting on that line 2. More importantly, it just ignored the very specific line I told it to go to. It's like I was playing telephone with the LLM which felt so strange with text-based communication.

This was me trying to get better at using the LLM while coding and seeing if I could "one-shot" some very simple things. Of course me doing this _very_ tiny fix myself would have been faster. Just felt weird and reinforces this idea that the LLM isn't actually thinking at all.

replies(4): >>44360819 #>>44360879 #>>44360917 #>>44363593 #
toephu2 ◴[] No.44360917[source]
Sounds like operator error to me.

You need to give LLMs context. Line number isn't good context.

replies(3): >>44361316 #>>44364260 #>>44365210 #
meepmorp ◴[] No.44361316[source]
> Line number isn't good context.

a line number is plenty of context - it's directly translatable into a range of bytes/characters in the file

replies(2): >>44361838 #>>44362459 #
1. nprateem ◴[] No.44362459[source]
...which LLMs don't use as they use tokens instead.
replies(1): >>44364266 #
2. oneeyedpigeon ◴[] No.44364266[source]
So do compilers, and they don't seem to have a problem with something as basic as line numbers.