llms.txt 是 Bright Data 全部文档页面的结构化、markdown 格式化索引 - 每个页面一个条目,包含简短描述和直接链接。格式:
# Bright Data Docs## Docs- [Agent Web Access](https://docs.brightdata.com/ai/agents.md): Complete web infrastructure for AI agents- [SERP API Introduction](https://docs.brightdata.com/scraping-automation/serp-api/introduction.md): Real-time search results- [Web Unlocker](https://docs.brightdata.com/scraping-automation/web-unlocker/introduction.md): Bypass bot detection...
注意每个链接都指向页面的 .md 版本 - 纯净 markdown,无 HTML。何时使用:
加载到代理的系统提示中以获得完整的产品认知
向检索系统提供用于决定获取哪些文档页面
为编码代理提供可用产品的地图
# 快速预览curl https://docs.brightdata.com/llms.txt | head -40# 下载以供离线使用curl -o brightdata-llms.txt https://docs.brightdata.com/llms.txt
Please read https://docs.brightdata.com/llms.txt to understand the availableBright Data products, then help me choose the right API for scraping Amazon product pages.
import httpx# 获取索引llms_txt = httpx.get("https://docs.brightdata.com/llms.txt").textmessages = [ { "role": "system", "content": f"""You are a helpful assistant with expertise in Bright Data's web data APIs.Here is the full index of available documentation:{llms_txt}Use this to understand which products and APIs are available, then fetchspecific pages when you need full details on a product.""" }, {"role": "user", "content": "How do I scrape Amazon product pages?"}]