llms.txtllms.txt
放在网站根目录、以 Markdown 格式向大语言模型和 AI 代理说明站点核心内容与关键页面的文本文件提案(2024 年 9 月提出)。
A proposal (September 2024) for a Markdown text file placed at a website's root that tells large language models and AI agents what the site's core content and key pages are.
定义Definition
llms.txt 是 Jeremy Howard 于 2024 年 9 月提出的一项提案:网站在根路径 /llms.txt 放置一个 Markdown 格式的文件,用简洁的结构告诉大语言模型和 AI 代理这个网站是什么、有哪些核心内容、关键信息在哪些页面。
llms.txt is a proposal by Jeremy Howard from September 2024: a website places a Markdown file at /llms.txt that tells large language models and AI agents, in a simple structure, what the site is, what its core content is and which pages hold the key information.
它的出发点是:网页是为人设计的,导航、广告和脚本会干扰机器读取;而 AI 代理在回答问题时,往往只需要一份干净、结构化的内容导览。
The starting point: web pages are designed for people, and navigation, ads and scripts get in the way of machine reading, whereas an AI agent answering a question often needs only a clean, structured guide to the content.
原理与机制How it works
按照提案,llms.txt 使用固定的 Markdown 结构:以一级标题写站点或项目名称;以引用块写一段简要说明;随后可以有补充说明段落;再用二级标题分组列出重要页面的链接,每个链接可附一句说明。提案还建议为重要页面提供对应的 Markdown 版本,便于模型直接读取。
Under the proposal, llms.txt has a fixed Markdown structure: a level-one heading with the site or project name; a blockquote with a short summary; optional further paragraphs; then level-two headings grouping links to important pages, each with an optional one-line note. It also suggests offering Markdown versions of important pages so models can read them directly.
与 robots.txt 不同,llms.txt 不用于允许或禁止抓取,而是提供内容导览;与 sitemap.xml 不同,它不追求列出全部网址,而是挑出对理解站点最重要的部分。
Unlike robots.txt, llms.txt does not allow or block crawling; it provides a guide to the content. Unlike sitemap.xml, it does not try to list every URL but picks out what matters most for understanding the site.
应用与实践In practice
适合使用 llms.txt 的场景包括:技术文档、产品说明、品牌信息站、知识库等希望被 AI 准确理解的网站。常见做法是写清品牌或项目的一句话定义、主体信息和联系方式,列出关于、产品、常见问题、价格说明等关键页面。
It suits sites that want AI to understand them accurately, such as technical documentation, product information, brand information sites and knowledge bases. A common approach is to give a one-sentence definition of the brand or project, the legal entity and contact details, and to list key pages such as About, Products, FAQ and Pricing.
维护时应确保 llms.txt 中的事实与网页正文一致,并随网站更新同步修改。部分站点还会提供 llms-full.txt,把核心内容全文合并在一个文件中。
When maintaining it, keep the facts in llms.txt consistent with the pages and update it whenever the site changes. Some sites also provide llms-full.txt, combining the full text of their core content in one file.
相关标准与规范Related standards
llms.txt 目前是社区提案,不是 W3C 或 IETF 等机构发布的正式标准,规范以 llmstxt.org 上公布的版本为准,提案也在持续修订。
llms.txt is a community proposal, not a formal standard from a body such as the W3C or IETF; the version published at llmstxt.org is authoritative, and the proposal is still being revised.
是否读取 llms.txt 由各 AI 平台和代理工具自行决定,目前并非所有平台都会使用它。与之配合的仍是已有标准:robots.txt 管理抓取许可,sitemap.xml 提交网址清单,结构化数据标注页面实体。
Whether llms.txt is read is up to each AI platform and agent tool, and not all of them use it yet. It works alongside existing standards: robots.txt for crawl permissions, sitemap.xml for submitting URLs, and structured data for marking up entities on pages.
常见误区Common myths
误区一:有了 llms.txt,AI 就会引用网站内容。实际上,它只是一份导览,能否被读取和引用取决于各平台的实现以及内容本身的质量。
Myth 1: with llms.txt, AI will cite your site. In fact, it is only a guide; whether it is read and cited depends on each platform's implementation and on the quality of the content itself.
误区二:llms.txt 可以替代 robots.txt 或 sitemap。实际上,三者作用不同,llms.txt 不控制抓取,也不提交全部网址。
Myth 2: llms.txt can replace robots.txt or a sitemap. In fact, the three do different jobs; llms.txt neither controls crawling nor submits every URL.
误区三:可以在 llms.txt 里写网页上没有的宣传内容。实际上,导览内容与网页不一致会削弱可信度,也与提案初衷相悖。
Myth 3: llms.txt can carry promotional claims that are not on the site. In fact, a guide that disagrees with the pages undermines credibility and goes against the purpose of the proposal.
参考来源Sources
- llmstxt.org:The /llms.txt file(Jeremy Howard 提案,2024-09) https://llmstxt.org/
- Google Search Central:robots.txt 简介Google Search Central: Introduction to robots.txt https://developers.google.com/search/docs/crawling-indexing/robots/intro
相关词条Related entries
llms-full.txt生成引擎优化(GEO)Generative Engine Optimization (GEO)结构化数据(Schema.org)AI 爬虫答案引擎优化(AEO)Answer Engine Optimization (AEO)零点击搜索AI Overviews精选摘要
更新:2026-10-16 · 格物志Updated 16 Oct 2026 · Gewuzhi