Add AI Overview feature with rate limiting and settings UI - #8
Merged
Conversation
- Add wp-env for local development environment - Add CLAUDE.md with project setup documentation - Include package-lock.json for consistent builds - Keep composer.lock ignored for multi-PHP testing closes #4 Co-authored-by: Claude <noreply@anthropic.com>
- Add AiOverview hook for wp-ai-client initialization and REST API - Add FaqSearchService with RAG-based FAQ search (keyword extraction + fallback) - Add ai-overview Gutenberg block with markdown parsing - Update package.json scripts to include blocks in lint and build - Add block registration in hamelp.php Co-authored-by: Claude <noreply@anthropic.com>
- Add FaqCatalogBuilder: persistent catalog stored in wp_options with cron-based async rebuild - Refactor FaqSearchService: single LLM call with full catalog context, JSON structured output - Add WP-CLI command: wp hamelp rebuild / status - Add Settings page: AI site context field on Settings > Reading - Add cache invalidation hooks scoped to FAQ post type and taxonomy - Frontend: convert [ID:xxx] references to linked source indices in answer text Co-authored-by: Claude <noreply@anthropic.com>
…cription, target users, response tone, notes) and integrate with system prompt Co-authored-by: Claude <noreply@anthropic.com>
…r AI Overview endpoint Co-authored-by: Claude <noreply@anthropic.com>
…render_ai_overview() Co-authored-by: Claude <noreply@anthropic.com>
…e .mo file Co-authored-by: Claude <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FAQコンテンツをベースにLLMがユーザーの質問に回答する「AI Overview」機能を追加します。
hamelp_render_ai_overview()でテーマから直接呼び出し可能wp hamelp rebuild/wp hamelp status付き)依存関係
wordpress/wp-ai-client(experimental) — Composer経由で同梱Test plan
wp hamelp rebuildでFAQカタログを構築hamelp_render_ai_overview()で同様に動作確認🤖 Generated with Claude Code