平时开发过程中经常需要让AI查询开发文档,但是大部分文档都会拆分路由,所以AI无法一次性在一个页面上找到任务所需要的信息

...
├── docs/
│   ├── introduction
│   ├── quckstart
│   ├── installation      
│   ...

已经有很多网站采用llms.txt文件,让AI能够更好理解和找到网站相关内容

例如vercel在其网站目录下有/docs/llms.txt 文件

通过寻找这样的llms.txt文件,很多技术文档都对AI更加友好。例如langchain的文档在python.langchain.com/llms.txt 大家可以自己去发现。


llms.txt 路径收集

  • langchain-python:

https://python.langchain.com/llms.txt
  • langgraphjs

https://langchain-ai.github.io/langgraphjs/llms.txt
  • shadcn UI (自用)

https://blog.tylergg.top/articles/shadcn-ui-doc-llmstxt
  • shadcn UI - vue

https://shadcn-vue.com/llms.txt

什么是llms.txt

llmstxt.org A proposal to standardise on using an /llms.txt file to provide information to help LLMs use a website at inference time.

Continue Reading
All Articles
2025年7月16日
Shadcn UI doc llms.txt
constructed shadcnui docs llms.txt version , free to copy and feed to your llms :D
© 2025 Tylergg