drupal/ai_recipe_llm_optimized_content
Composer 安装命令:
composer require drupal/ai_recipe_llm_optimized_content
包简介
AI-optimized content delivery recipe. Provides llms.txt support, markdown content output, and noise reduction to improve Large Language Model processing efficiency.
README 文档
README
AI-optimized content delivery recipe. Provides llms.txt support, markdown content output, and noise reduction to improve Large Language Model processing efficiency.
Project Information
- Drupal.org Project: https://www.drupal.org/project/ai_recipe_llm_optimized_content
- Ecosystem: AI (Artificial Intelligence)
What it does
The AI LLM Optimized Content Recipe transforms Drupal sites into AI-friendly platforms by automatically generating and optimizing content specifically for large language model (LLM) processing.
Why it matters
Modern websites need to be optimized not just for human readers and search engines, but also for AI systems that increasingly consume and process web content. This recipe addresses the growing need for content that can be efficiently processed by large language models, reducing computational costs and improving AI understanding of site content. By implementing LLM-optimized content structures, sites can ensure better AI comprehension while maintaining excellent user experience.
How it works
The recipe leverages the Markdownify module to expose generated Markdown versions of Drupal pages, transforming HTML-rich content into lightweight, AI-ready Markdown format. The Markdownify module converts Drupal's standard HTML rendering into clean Markdown through a seamless process powered by the League HTML-to-Markdown Library, dramatically reducing token usage and enhancing AI optimization.
It also installs the /llms.txt module that creates a default llms.txt file at the root of your website as a "home page" for LLMs and AI agents, and it enables you to further edit and enrich the llms.txt file to optimally guide bots to undestand the intent and structure of your site and expose your key content.
Key features include:
- Up to 90% reduction in token counts compared to HTML -Multiple flexible access methods for Markdown content
- Integration with AI providers for content generation and refinement
- Seamless integration with existing Drupal content workflows
- Support for multiple content types and field configurations
Getting started
Prerequisites
- Drupal 10.4 or higher
- PHP 8.1 or higher
Installation
The recipe can be applied using Drupal's recipe system. It will automatically configure the necessary modules and settings to enable LLM-optimized content generation on your site.
Use cases
- Content optimization: Automatically optimize existing content for better AI processing
- AI-friendly publishing: Generate new content that is structured for optimal LLM consumption
- Cost reduction: Minimize AI processing costs through efficient content structuring
- SEO enhancement: Improve content visibility to AI-powered search systems
- Multilingual support: Optimize content across multiple languages for global AI systems
drupal/ai_recipe_llm_optimized_content 适用场景与选型建议
drupal/ai_recipe_llm_optimized_content 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 268 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 drupal/ai_recipe_llm_optimized_content 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 drupal/ai_recipe_llm_optimized_content 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 268
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-10-10