Source

AI Is Part of Your Online Audience: Some webpages are written not for humans but for large language models to read. Developers can benefit by keeping the LLM audience in mind.

Open the source

Andrew Ng observes an emerging trend of people writing online text intended for LLMs rather than humans. He contrasts misaligned incentives (publishers, prompt injection, spam) with aligned ones, such as a startup wanting LLMs to use its new software library, and argues that because LLMs and humans ingest text differently, authors should write differently for each, drawing a parallel to SEO.

- Some people now post text intended for direct consumption by LLMs rather than humans. - Many authors' incentives are misaligned with LLM providers, leading to litigation, prompt injection, and LLM spam. - New software libraries won't be in pretraining data, so developers can help LLMs find and use their documentation via RAG. - LLMs struggle with complex, graphical websites but are far better than people at ingesting long, dense text. - Proposals like llms.txt and .cursorrules files are early steps toward text written for LLMs. - Writing for LLMs parallels SEO and will grow until LLMs catch up with humans at understanding complex websites.

Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.

Supports these rules

Quotes from this video

“Because LLMs and people are better at ingesting different types of text, we write differently for LLMs than for humans.”

“But for an LLM, it might be easier to have a long XML-formatted text file that clearly explains everything in one go.”

“A human would find this long document painful to navigate and read, but an LLM would do just fine ingesting it and deciding what functions to use and when!”

“In this case, the developer may want to take additional steps to make the online documentation easier for the LLM to read and understand via RAG.”

Topics