人工智能大型语言模型无法计算文件中的行数。
我开始尝试最新的语言模型(LLM),发现它们在计算文件中的行数方面表现不佳。我给Gemini 2.5 flash提供了一个Python脚本,要求它告诉我第27行的内容,但它总是出错。我反复尝试以正确的方式提示它,但都没有成功。
这是LLM机器人仍然不擅长的事情吗?我以为它们已经克服了“草莓”计数的问题。
这是原始文件: https://pastebin.com/FBxhZi6G
查看原文
Was starting to mess around with the latest LLM models and found that they're not great at counting lines in files.<p>I gave Gemini 2.5 flash a python script and asked it to tell me what was at line 27 and it consistently got it wrong. I tried repeatedly to prompt it the right way, but had no luck.<p>https://g.co/gemini/share/0276a6c7ef20<p>Is this something that LLM bots are still not good at? I thought they had gotten past the "strawberry" counting problems.<p>Here's the raw file: https://pastebin.com/FBxhZi6G