What is it?

The llms.txt file is a simple text file written in Markdown that contains information about the website or application.

It allows a Large Language Model (LLM) to quickly understand the essential information about the site, which can help improve the quality of the responses generated by the LLM.

Why use it?

If an LLM’s model has not been trained with information from your site or application, it may not be able to correctly answer users' questions. By providing an llms.txt file, you can help the user supply content for their question, content that fits within the maximum context size allowed by the model.

Alternatively, if the llms.txt file becomes widespread, developers could include it in their model training, rather than having to scrape the entire website, thus reducing the amount of data to process.

How to use it?

I invite you to read the official documentation to learn more about the syntax and best practices for writing an llms.txt file. In summary, it is a text file written in Markdown that contains text and links. The file should be placed at the root of the website, and it should be accessible via the URL https://example.com/llms.txt (replace "example.com" with your site’s name).

In addition to the llms.txt file, it is also suggested to have a Markdown version of each page of the site.

Why don’t I have one on my blog?

Give me time to master Hugo! I already found this page, I’ll see if I implement it. And anyway, do I really want to be used by an LLM?!!!