How LLMs Read Docs
aiwiki.dev·13w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help