llms.txt-voorbeelden
Gepubliceerd:
De snelste manier om een goede llms.txt te schrijven is te beginnen vanuit een die werkt. Hier zijn drie patronen die je kunt aanpassen.
1. Het minimale bestand
Perfect voor een klein product of een landingssite. Titel, samenvatting, één sectie met belangrijke links.
# Acme > Acme turns CSV files into charts. This file links to the docs an LLM needs to help users. ## Docs - [Quickstart](https://acme.com/start): Upload a CSV and get a chart in 60 seconds - [Pricing](https://acme.com/pricing): Plans and limits
2. Het documentatierijke bestand
Voor API-/SDK-sites. Groepeer op doel, link naar de Markdown-versies van pagina's en gebruik een Optional-sectie voor secundair materiaal.
# Acme API > REST API for chart generation. Authentication, endpoints, and SDKs below. ## Getting started - [Authentication](https://acme.com/docs/auth.md): API keys and scopes - [Quickstart](https://acme.com/docs/quickstart.md): First request in 5 minutes ## Reference - [Endpoints](https://acme.com/docs/api.md): Every endpoint and parameter - [Errors](https://acme.com/docs/errors.md): Error codes and handling ## Optional - [Changelog](https://acme.com/changelog.md): Release history
3. De combinatie van llms.txt + llms-full.txt
Grote documentatiesets publiceren vaak beide: llms.txt als index, en llms-full.txt met de volledige inhoud inline, zodat een agent alles in één fetch kan inlezen.
Kopieer de structuur, niet de inhoud
Welk patroon je ook kiest, houd beschrijvingen specifiek, gebruik absolute HTTPS-links en zorg dat elke link werkt. Laat het bestand vervolgens door de validator lopen om te bevestigen dat het 100 scoort.