| 开发者 | vragenai |
|---|---|
| 更新时间 | 2026年11月3日 16:30 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
wp vragenai sync) for scripted/initial imports.[vragenai_related] shortcode.vragenai_should_index_postvragenai_post_is_visiblevragenai_document_render_content_sourcevragenai_document_content_fragmentsvragenai_include_acf_fieldvragenai_include_acf_blockvragenai_acf_block_denylistvragenai_document_attributesvragenai_native_search_optionswp-config.php, see Installation.
{customer} in {customer}.vragen.ai) and API token. A success notice confirms the connection.wp-config.php:
define( 'VRAGENAI_CUSTOMER', 'your-organisation' );
define( 'VRAGENAI_TOKEN', 'your-api-token' );
These constants take precedence over the values stored in the settings screen.
The API is reached at {customer}.vragen.ai by default. For staging or self-hosted environments you can change the root domain (the customer name stays the subdomain) by defining:
define( 'VRAGENAI_API_DOMAIN', 'example.com' );
With customer your-organisation this targets https://your-organisation.example.com/api/v1. There is no settings-screen field for this on purpose.Yes. The plugin connects your site to your own vragen.ai knowledge base. Plans start at €49 per month; all plans are listed on https://www.vragen.ai/en/pricing/. You can create a demo first at https://www.vragen.ai/en/request-a-demo/.
Vragen.ai only answers from the sources you choose and has no access to the internet. If the answer isn't in those sources, it says so and points the way. That is a design choice, not a guarantee that a language model never summarises something wrongly. That's why every answer shows its source, and why you test the answers in a separate environment before anything goes live.
In the Netherlands. You choose the language model; the whole chain can run in the Netherlands. Conversations are never used to train AI models. See https://www.vragen.ai/en/security/ for the details, including the data processing agreement.
From your vragen.ai account. See https://vragen.ai/docs.
No. The plugin sends the file URL to vragen.ai, which crawls and extracts the text server-side.
Yes. With WPML or Polylang active, all translations of a post are treated as one piece of content: they are merged into a single vragen.ai document keyed on the default-language (canonical) translation, with the document content taken from that translation and every available language listed in its metadata. Translations are assumed to be semantically equivalent, so only the canonical content is indexed.
Yes. On Settings → Vragen.ai, enable replacing the native search. Your theme's existing search page, results template and search widget then return semantic results from vragen.ai, ordered by relevance, with pagination preserved. Only synced content is searchable. If the API is unavailable or times out, the plugin falls back to WordPress' built-in search so the site never loses search.
Only publicly visible posts are indexed and shown: the plugin skips draft, pending, scheduled, private, trashed, non-public custom statuses and password-protected posts, on both the sync and the read paths. For content a plugin gates by role or membership, add a vragenai_post_is_visible filter returning false for those posts, and they are kept out of indexing, related content and search together. Returning false to hide a post is the safe use; returning true on the read side can also reveal an otherwise-hidden post, so only do that when you mean to.
One limitation to know: a post is indexed whole. The plugin renders a post's content in a background job, without a logged-in visitor, so if you hide only part of an otherwise public post (a members-only block or section, a conditional field), that part can still be rendered at index time even though a visitor does not see it on the page. If you use section-level gating, strip the restricted content before indexing with the vragenai_document_render_content_source or vragenai_document_content_fragments filters, exclude specific ACF fields with vragenai_include_acf_field, or keep the whole post out with vragenai_post_is_visible or vragenai_should_index_post.
If you use the Vragen.ai embed block or the site-wide embed, it loads a script from your vragen.ai instance and makes API calls to it, so a strict CSP must allow your vragen.ai domain:
*.vragen.ai does not match the bare vragen.ai, so include both. If you set the VRAGENAI_API_DOMAIN constant, allow that domain instead.
[vragenai_related] shortcode and semantic native search no longer list posts a visitor may not see: scheduled, private, pending, a non-public custom status, or password-protected.wp vragenai sync now honours the vragenai_should_index_post filter, so content a site excludes is not re-indexed by a full sync.vragenai_post_is_visible filter, applied to indexing and the read paths (attachments included) from one shared check, so membership or paywall plugins can keep gated content out of the knowledge base, related content and search in one place.
Thanks to Marish Pasco for finding and reporting these.[vragenai_related] shortcode that show semantically related posts as a list or cards.