文章有
311字
-
阅读时间约
16分钟
文章有
311字
-
阅读时间约
16分钟
最近,看到各种开发工具最近在其文档中添加了 LLMs.txt 支持。
虽然 robots.txt
和 sitemap.xml
是为搜索引擎设计的,但 LLMs.txt
针对推理引擎进行了优化。它以 LLM 可以轻松理解的格式向他们提供有关网站的信息。
LLMs.txt 是一个具有特定结构的 markdown 文件。
/llms.txt
: 简化的文档导航视图,帮助 AI 系统快速理解站点的结构/llms-full.txt
: 在一个包含所有文档的综合文件该文件必须以 H1
项目名称开头,后跟引用摘要。后续部分使用 H2
标题来组织文档链接。 “Optional”部分专门标记了可选的不太重要的资源。
# Project Name
> Brief project summary
Additional context and important notes
## Core Documentation
- [Quick Start](url): Description of the resource
- [API Reference](url): API documentation details
## Optional
- [Additional Resources](url): Supplementary information
真实案例:
收录了大量采用llms.txt的网站,涵盖AI、金融、开发、产品等领域
https://directory.llmstxt.cloud/
虽然 /llms.txt
提供导航和结构,但 /llms-full.txt
包含 markdown 中的完整文档内容。
# AI Review (Beta)
AI Review is a feature that allows you to review your recent changes in your codebase to catch any potential bugs.
<Frame>
<img src="https://mintlify.s3-us-west-1.amazonaws.com/cursor/images/advanced/review.png" alt="AI Review" />
</Frame>
You can click into individual review items to see the full context in the editor, and chat with the AI to get more information.
### Custom Review Instructions
In order for AI Review to work in your favor, you can provide custom instructions for the AI to focus on. For example,
if you want the AI to focus on performance-related issues, you could put:
```
focus on the performance of my code
```
This way, AI Review will focus on the performance of your code when scanning through your changes.
### Review Options
Currently, you have a several options to choose from to review:
* `Review Working State`
* This will review your uncommitted changes.
* `Review Diff with Main Branch`
* This will review the diff between your current working state and the main branch.
* `Review Last Commit`
* This will review the last commit you made.
真实案例:
目前,LLMs.txt 提供了一个实用的解决方案,帮助人工智能系统更好地理解和利用网络内容,特别是技术文档和 API。
投喂给AI以获取知识库
将文件内容提供给你的 AI 系统,或者分享链接给可以访问 URL 的 AI 助手。
可以通过粘贴链接、将文件内容直接复制到提示中或使用 AI 工具的文件上传功能来完成。
如ChatGPT、Claude、Cursor。
llms.txt 规范文档:https://llmstxt.org/#format
在线检测是否符合 llms.txt 规范 :https://llmstxtvalidator.org
LLMs.txt 生成器:https://llms.tools/zh
文章不错?点个赞呗
0