llms.txt를 사용하세요. 검색, 질의응답 또는 코딩 지원을 위해 도구가 전체 문서 텍스트를 수집할 수 있다면 llms-full.txt를 사용하세요.
간결한 인덱스 가져오기
다음 요청은 CometAPIllms.txt 인덱스를 다운로드합니다:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
코딩 어시스턴트, 검색 시스템, 모델 프롬프트와 함께 CometAPI llms.txt 및 llms-full.txt를 사용하세요.
llms.txt를 사용하세요. 검색, 질의응답 또는 코딩 지원을 위해 도구가 전체 문서 텍스트를 수집할 수 있다면 llms-full.txt를 사용하세요.
llms.txt 인덱스를 다운로드합니다:
curl https://apidoc.cometapi.com/llms.txt
# CometAPI Documentation
> CometAPI developer documentation for unified API access...
## Docs
- [Create a new API key](https://apidoc.cometapi.com/api/api-keys/create-api-key.md)
curl https://apidoc.cometapi.com/llms-full.txt
# Create a new API key
Source: https://apidoc.cometapi.com/api/api-keys/create-api-key
Create a new CometAPI API key for the authenticated account.
from pathlib import Path
import requests
url = "https://apidoc.cometapi.com/llms-full.txt"
response = requests.get(url, timeout=60)
response.raise_for_status()
Path("cometapi-docs.txt").write_text(response.text, encoding="utf-8")
print(len(response.text))
449946
| 오류 | 해결 방법 |
|---|---|
| 도구 컨텍스트가 너무 작음 | 먼저 llms.txt를 사용한 다음, 관련 있는 링크된 페이지만 가져오세요. |
| 전체 텍스트가 너무 큼 | 인덱싱 전에 제목 또는 소스 URL 기준으로 llms-full.txt를 청크로 나누세요. |
| 로컬 캐시 손상 | 문서 동기화 작업 중에 파일을 새로고침하세요. |
| AI 결과에 페이지가 없음 | 해당 페이지가 내비게이션과 llms.txt에 표시되는지 확인하세요. |