Remix.run Logo
AlecSchueler 2 days ago

> In theory, an AI should be able to fetch the llms.txt for every library and have an actual authoritative source of documentation for the given library.

But isn't the entire selling point of the LLM than you can communicate with it in natural language and it can learn your API by reading the human docs?

languid-photic 2 days ago | parent [-]

Yes, but I think part of the reason for llms.txt is optimize context. eg beyond content, the human docs often have styling markup which wastes tokens.

AlecSchueler 2 days ago | parent [-]

Hmm, sounds like LLMs.txt might be nicer for humans to read all well.

gorbypark a day ago | parent [-]

Sometimes they are! I use the expo docs as a human all the time. Some project however seem to really "minify" their docs and are less readable. I'm not quite sure how minifying really saves space as it seems like they are just removing new lines as the docs are still in markdown...

Good for humans example: https://docs.expo.dev/llms-full.txt

Bad for humans example: https://www.unistyl.es/llms-small.txt