How LLMs Read Docs
aiwiki.dev·6h·
Discuss: Hacker News
Flag this post

How LLMs Read Docs

Problem: During pretraining LLMs memorize documentation, which soon becomes outdated.

Solution: Just give LLMs relevant context!

Current Approaches to Providing Context

1) llms-full.txt

A large (sometimes >380k tokens) file that is stored somewhere on documentation website of the library provider.

Problem 1: It bloats the context. 200k tokens is what Claude Code currently has, so the doc that you are feeding it is becoming “losely compressed”. Also the majority of that documentation might not even be needed, if you are implementing a quickstart or using a specific small part of the system.

Problem 2: Who knows if it actually exists for that library provider, or no? So the agent needs to verify if that file exists, and have fall…

Similar Posts

Loading similar posts...