Hacker News new | ask | show | jobs
by theshrike79 263 days ago
I've had every single LLM I tried (Opus, Sonnet, GPT-5-(codex) and Grok light) all tell me that Go embeds[0] support relative paths UPWARDS in the tree.

They all have a very specific misunderstanding. Go embeds _do_ support relative paths like:

//go:embed files/hello.txt

But they DO NOT support any paths with ".." in it

//go:embed ../files/hello.txt

is not correct.

All confidently claimed that .. is correct and will work and tried to make it work multipled different ways until I pointed each to the documentation.

[0] https://pkg.go.dev/embed

1 comments

I don’t really find that so surprising or particularly stupid. I was hoping to learn about serious issues with bad logic or reasoning not missing dots on i’s type stuff.

I can’t remember the example but there was another frequent hallucination that people were submitting bug reports that it wasn’t working, so the project looked at it and realized well actually that kinda would make sense and maybe our tool should work like that, and changed the code to work just like the LLM hallucination expected!

Also in general remember human developers hallucinate ALL THE TIME and then realize it or check documentation. So my point is I feel hallucinations are not particularly important or bother me as much as flawed reasoning.

Yep, LLMs are "just" statistical guessing machine.

And if an LLM guesses (hallucinates) a specific method for your API, it really should have it - statistically speaking =)