Linux 软件免费装
Banner图

PishTop Content Suggestion with AI

开发者 micromax2
更新时间 2026年7月13日 00:18
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2
版权网址: 版权信息

标签

related posts semantic search openrouter ai recommendations vector embeddings

下载

1.6.6 1.6.7

详情介绍:

PishTop Content Suggestion with AI is a next-generation related posts plugin that uses advanced semantic modeling. Rather than relying on simple keyword matching, it leverages local vector embeddings (generated via OpenRouter.ai) and cosine similarity in PHP to find contextually relevant recommendations. To achieve maximum precision, the plugin performs local similarity pre-filtering and passes the top candidates to a selected OpenRouter Chat LLM (e.g., Gemini, GPT-4) for a final re-ranking step. Key Features

安装:

  1. Upload the plugin files to the /wp-content/plugins/pishtop-content-suggestion-with-ai directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Navigate to Settings > AI Suggestions to enter your OpenRouter API Key and configure your parameters.
  4. Use the shortcode [pishtop_suggestions count="5" template="default_list"] to insert suggestions on your pages/posts.

常见问题:

How do I display suggestions?

You can insert suggestions using the shortcode [pishtop_suggestions count="5" template="default_list"] on your posts.

What API models does it support?

The plugin automatically pulls all available embedding and chat models from the OpenRouter API. You can choose any supported model (e.g., Google Gemini, OpenAI GPT, Cohere) in the Matching Engine settings tab.

How do cost budgets work?

You can set daily quota limits for both embedding generation and LLM re-ranking. Once a limit is reached, the plugin will seamlessly fall back to native WordPress matching to prevent any additional charges. Quotas reset at local midnight.

Can I bypass the LLM re-ranking phase?

Yes! Under the Matching Engine settings tab, you can disable the "Enable LLM Re-ranking" option. In this "Embedding-Only" mode, the plugin recommends items based purely on their local vector similarity, completely bypassing the OpenRouter LLM chat API call to save on cost and improve page load speeds. You can also configure a "Similarity Threshold (%)" so only items above a certain similarity match score are recommended.

Does it support WooCommerce pages?

Yes! When used inside WooCommerce Cart, Checkout, or Order Received (Thank You) pages, the plugin dynamically extracts active cart products or purchased order items to match suggestions, rather than using generic page titles. Out-of-stock items can also be hidden.

How does it handle caching on WooCommerce pages?

To prevent user cache cross-leakage, the caching transient keys are dynamically partitioned per customer session using MD5 hashes of cart items and order IDs.

What happens during a Cache Stampede?

If a popular post cache expires, a mutex lock is set. Parallel visitor hits on the page immediately receive native fallback recommendations while the first request fetches the new OpenRouter results in the background, keeping page loads fast and preventing multiple duplicate API charges.

How do developer filters work?

The plugin provides two filters:

  • pishtop_ai_post_text (filters post source text before embedding).
  • pishtop_ai_recommendations_transient_key (filters cache keys).

How does the diagnostic log cap work?

The log table is capped at 5,000 rows. Pruning prunes old rows down to a configured ratio (e.g., 90%) to prevent database stress. A warning is logged if high volume causes early truncation.

更新日志:

1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0