From cf9745af66d41d64b864bdbd9a363aa95b07842a Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:09:14 +0000 Subject: [PATCH 1/3] docs: document llms.txt 100k character limit and custom file workaround --- ai/llmstxt.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ai/llmstxt.mdx b/ai/llmstxt.mdx index 0df6e300b1..fa6bd038eb 100644 --- a/ai/llmstxt.mdx +++ b/ai/llmstxt.mdx @@ -44,6 +44,10 @@ Each page's description comes from the `description` field in its frontmatter. D This structured approach allows LLMs to efficiently process your documentation at a high level and locate relevant content for user queries, improving the accuracy and speed of AI-assisted documentation searches. + + The automatically generated `llms.txt` file is capped at 100,000 characters. If your documentation exceeds this limit, Mintlify truncates the file and appends a note listing the number of omitted pages. To list every page without truncation, add a [custom `llms.txt` file](#custom-files) at the root of your project. + + ```mdx Example llms.txt # Site title From a942e89d7f3d50fc8c8ac2ac2883b82ab77033aa Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:10:56 +0000 Subject: [PATCH 2/3] docs: translate llms.txt truncation note to fr, es, zh --- es/ai/llmstxt.mdx | 4 ++++ fr/ai/llmstxt.mdx | 4 ++++ zh/ai/llmstxt.mdx | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/es/ai/llmstxt.mdx b/es/ai/llmstxt.mdx index 30967ae9c4..dfdf120dc4 100644 --- a/es/ai/llmstxt.mdx +++ b/es/ai/llmstxt.mdx @@ -46,6 +46,10 @@ La descripción de cada página proviene del campo `description` en su frontmatt Este enfoque estructurado permite a los LLM procesar tu documentación de forma eficiente a un alto nivel y localizar contenido relevante para las consultas de los usuarios, mejorando la precisión y la velocidad de las búsquedas de documentación asistidas por IA. + + El archivo `llms.txt` generado automáticamente está limitado a 100.000 caracteres. Si tu documentación supera este límite, Mintlify trunca el archivo y añade una nota indicando el número de páginas omitidas. Para listar todas las páginas sin truncamiento, añade un [archivo `llms.txt` personalizado](#custom-files) en la raíz de tu proyecto. + + ```mdx Example llms.txt # Título del sitio diff --git a/fr/ai/llmstxt.mdx b/fr/ai/llmstxt.mdx index bacaf6940c..0acffe6e45 100644 --- a/fr/ai/llmstxt.mdx +++ b/fr/ai/llmstxt.mdx @@ -46,6 +46,10 @@ La description de chaque page provient du champ `description` de son frontmatter Cette approche structurée permet aux LLMs de traiter efficacement votre documentation à un niveau global et de repérer le contenu pertinent pour les requêtes des utilisateurs, améliorant ainsi la précision et la rapidité des recherches documentaires assistées par l'IA. + + Le fichier `llms.txt` généré automatiquement est limité à 100 000 caractères. Si votre documentation dépasse cette limite, Mintlify tronque le fichier et ajoute une note indiquant le nombre de pages omises. Pour lister toutes les pages sans troncature, ajoutez un [fichier `llms.txt` personnalisé](#custom-files) à la racine de votre projet. + + ```mdx Example llms.txt # Titre du site diff --git a/zh/ai/llmstxt.mdx b/zh/ai/llmstxt.mdx index c3f4886eee..27ca3f666c 100644 --- a/zh/ai/llmstxt.mdx +++ b/zh/ai/llmstxt.mdx @@ -46,6 +46,10 @@ Mintlify 会在每个页面的响应中添加 HTTP 标头,以便 AI 工具无 这种结构化方法使 LLM 能够高效地从宏观层面处理你的文档,并为用户查询定位相关内容,从而提升 AI 辅助文档搜索的准确性和速度。 + + 自动生成的 `llms.txt` 文件上限为 100,000 个字符。如果你的文档超过此限制,Mintlify 会截断该文件,并附加一条说明列出被省略的页面数量。若要不经截断列出所有页面,请在项目根目录添加一个[自定义 `llms.txt` 文件](#custom-files)。 + + ```mdx Example llms.txt # 站点标题 From 4c0e91f9790301d3c52d88de689b490448e3de16 Mon Sep 17 00:00:00 2001 From: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Date: Fri, 26 Jun 2026 10:31:54 -0700 Subject: [PATCH 3/3] Apply suggestion from @ethanpalm --- ai/llmstxt.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/llmstxt.mdx b/ai/llmstxt.mdx index fa6bd038eb..8e71cfc7ae 100644 --- a/ai/llmstxt.mdx +++ b/ai/llmstxt.mdx @@ -45,7 +45,7 @@ Each page's description comes from the `description` field in its frontmatter. D This structured approach allows LLMs to efficiently process your documentation at a high level and locate relevant content for user queries, improving the accuracy and speed of AI-assisted documentation searches. - The automatically generated `llms.txt` file is capped at 100,000 characters. If your documentation exceeds this limit, Mintlify truncates the file and appends a note listing the number of omitted pages. To list every page without truncation, add a [custom `llms.txt` file](#custom-files) at the root of your project. + Automatically generated `llms.txt` files cannot exceed 100,000 characters. If your documentation exceeds this limit, Mintlify truncates the file and appends a note listing the number of omitted pages. To list every page without truncation, add a [custom `llms.txt` file](#custom-files) at the root of your project. ```mdx Example llms.txt