Re:Libraries are under-used. LLMs make this problem worse
by nimish on Friday June 20, 2025 @06:56PM
(#44332876)
At this point it seems like just learning the library is easier than trying to cram the documentation into an LLM compatible format.
Re:Libraries are under-used. LLMs make this problem worse
by simonw on Friday June 20, 2025 @07:23PM
(#44333058)
Doing the work to effectively prepare those docs for an LLM probably does involve "learning the library", but once one person has done that (and published the results) many other people can benefit from it.
I'm a library author myself, so publishing LLM-enhanced versions of the docs to help other people use my library more effectively feels like a sensible use of my time.
I'm still not clear on what the best patterns for this are myself. I've been experimenting with dumping my entire documentation into the model as a single file - see https://github.com/simonw/docs-for-llms and https://github.com/simonw/llm-docs - but I'd like to produce shorter, optimized documentation (probably with a whole bunch of illustrative examples) that use fewer tokens and get better results.