LLM-ready docs
Providing an LLM-friendly version of your docs site
Last updated
Was this helpful?
Providing an LLM-friendly version of your docs site
Last updated
Was this helpful?
We're building features that make it easier for Large Language Models (LLMs) to ingest and work with your documentation content.
As LLMs become increasingly important for information retrieval and knowledge assistance, ensuring your documentation is LLM-friendly can significantly improve how these models understand and represent your products or services.
With GitBook, all of the pages of your docs site are automatically available as markdown files. If you add the .md
extension to any page, you will see the content of that page rendered in markdown which you can pass to an LLM for more efficient processing than an HTML file.
For example, if your docs page is found at , then you can view a markdown version of the page at .
This functionality is currently only available to a small number of sites as we roll out a new platform for published documentation. We’ll update this page again when it’s available to all customers soon.
is a proposed standard for making web content available in text-based formats that are easier for LLMs to process. You can access the llms.txt
page by appending /llms.txt
to the root URL of your docs site.
For example, if your docs are hosted at , you will find your llms.txt
file at .
The llms.txt
file serves as an index for your documentation site, providing a comprehensive list of all available markdown-formatted pages. With this file, you make it easier for LLMs to efficiently discover and process your documentation content.
LLMs can use this index to navigate directly to the markdown versions of your pages, allowing them to incorporate your documentation into their context without needing to parse HTML.