You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/7.advanced/7.llms.md
+44-50Lines changed: 44 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,20 @@ description: Learn how to generate AI-ready content files using Nuxt Content and
4
4
the Nuxt LLMs module.
5
5
---
6
6
7
-
# LLMs Integration
7
+
The Nuxt Content module integrates [`nuxt-llms`](https://github.com/nuxtlabs/nuxt-llms) to prepare your content for Large Language Models (LLMs). When `nuxt-llms` is detected, Content module automatically extends the LLMs module and inject collections of type [page](https://content.nuxt.com/docs/collections/types#page-type) to the LLMs module.🚀
8
8
9
-
The Nuxt Content module seamlessly integrates with [`nuxt-llms`](https://github.com/nuxtlabs/nuxt-llms) to prepare your content for Large Language Models (LLMs). When `nuxt-llms` is detected, Content module automatically extends the LLMs module and inject `page` collection to the LLMs module.
That's it 🚀 `/llms.txt` file is automatically generated and pre-rendered.
36
33
37
-
Nuxt Content will automatically detect Nuxt LLMs module and will create a section to each `page` collection.
34
+
## Sections
38
35
39
-
## Custom Sections
36
+
When generating content, you can create custom sections to process your content into LLM-friendly formats.
40
37
41
-
The Content module enhances the LLMs module by adding two key options to control content generation:
38
+
You can create custom sections to the `llms.sections` array and define the `contentCollection` and `contentFilters` option for each section.
42
39
43
-
-`contentCollection`: Specifies which content collection to use as source
44
-
-`contentFilters`: Defines filters to select specific content within the collection
40
+
::prose-warning
41
+
If there is no section defined in the `contentCollection` option, the module will only add [page](https://content.nuxt.com/docs/collections/types#page-type) collections to the LLMs module.
42
+
::
45
43
46
-
When generating content, the module uses these options to fetch and process your content into LLM-friendly formats (`llms.txt` and `llms_full.txt`).
44
+
### `contentCollection`
47
45
48
-
All you need is to add your custom sections to the `llms.sections` array and define the `contentCollection` and `contentFilters` for each section.
46
+
This option specifies which content collection to use as source.
49
47
50
-
```ts
51
-
// nuxt.config.ts
48
+
```ts [nuxt.config.ts]
52
49
exportdefaultdefineNuxtConfig({
53
-
modules: ['@nuxt/content', 'nuxt-llms'],
54
50
llms: {
55
-
domain: 'https://your-site.com',
56
-
title: 'Your Site Name',
57
-
description: 'A brief description of your site',
58
51
sections: [
59
52
{
60
53
title: 'Documentation',
61
54
description: 'Technical documentation and guides',
0 commit comments