內容簡介
Markdown Content Negotiator for LLMs 是一款性能優化的 WordPress 外掛,旨在以 AI 代理和大型語言模型(LLMs)喜愛的乾淨 Markdown 格式提供網站內容。透過標準的 HTTP 內容協商,該外掛能夠在接收到特定請求時,回傳 Markdown 版本的文章或頁面,並確保最佳性能與最小伺服器負載。
【主要功能】
• 內容協商:根據請求自動切換至 Markdown 輸出
• YAML Frontmatter:以結構化格式包含標題、日期、作者及分類等元數據
• 性能追蹤:提供 X-Markdown-Tokens 標頭,使用標準 LLM 令牌啟發式
• AI 元數據:包含 X-Content-Signal 標頭,幫助代理理解文件性質
• 背景快取:利用 WP-Cron 預計算 Markdown 字串,確保請求時零延遲
• 管理設定:選擇啟用的文章類型並配置全局 AI 內容信號
外掛標籤
開發者團隊
② 後台搜尋「Markdown Content Negotiator for LLMs」→ 直接安裝(推薦)
原文外掛簡介
Markdown Content Negotiator for LLMs is a performance-optimized WordPress plugin designed to serve your website’s content in a format that AI agents and LLMs (Large Language Models) love: Clean Markdown.
Using standard HTTP Content Negotiation, the plugin detects when a request is made with the Accept: text/markdown header. Instead of serving the standard HTML theme, it returns a Markdown version of the post or page, complete with YAML Frontmatter, token estimation headers, and customizable content signals.
To ensure maximum performance and minimal server load, Markdown versions are pre-generated and cached using WP-Cron.
Key Features
Content Negotiation: Automatically switches to Markdown output when requested via the Accept: text/markdown header.
YAML Frontmatter: Includes metadata like Title, Date, Author, and Categories in a structured format.
Performance Tracking: Provides an X-Markdown-Tokens header using standard LLM token heuristics.
AI Metadata: Includes X-Content-Signal headers to help agents understand the nature of the document.
Background Caching: Uses WP-Cron to pre-calculate Markdown strings, ensuring zero latency during requests.
Admin Settings: Choose which post types to enable and configure global AI content signals.
