WPSolr logo
  • Search & AI Ecosystem
    • Parsing & Chunking
    • Search
      • Algolia
      • Apache Solr
      • Elasticsearch
      • Google AI Commerce
      • OpenSearch
    • AI Search
      • OpenSearch AI
      • PostgreSQL AI
      • Vespa AI
      • Weaviate AI
    • AI Answers with RAG
    • AI Recommendations
      • Amazon Personalize AI
      • Recombee AI
    • AI Personalized Search & Recommendations
      • Algolia AI
      • Google AI Commerce
  • Our Work
    • WPSOLR vs other plugins
    • Brands & Agencies we  💛
    • WPSOLR Customer Success Stories
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • Tel
    • US : (951) 612-8259
    • France : 01 62 04 55 85
  • Search & AI Ecosystem
    • Parsing & Chunking
    • Search
      • Algolia
      • Apache Solr
      • Elasticsearch
      • Google AI Commerce
      • OpenSearch
    • AI Search
      • OpenSearch AI
      • PostgreSQL AI
      • Vespa AI
      • Weaviate AI
    • AI Answers with RAG
    • AI Recommendations
      • Amazon Personalize AI
      • Recombee AI
    • AI Personalized Search & Recommendations
      • Algolia AI
      • Google AI Commerce
  • Our Work
    • WPSOLR vs other plugins
    • Brands & Agencies we  💛
    • WPSOLR Customer Success Stories
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • Tel
    • US : (951) 612-8259
    • France : 01 62 04 55 85
  • Search & AI Ecosystem
    • Parsing & Chunking
    • Search
      • Algolia
      • Apache Solr
      • Elasticsearch
      • Google AI Commerce
      • OpenSearch
    • AI Search
      • OpenSearch AI
      • PostgreSQL AI
      • Vespa AI
      • Weaviate AI
    • AI Answers with RAG
    • AI Recommendations
      • Amazon Personalize AI
      • Recombee AI
    • AI Personalized Search & Recommendations
      • Algolia AI
      • Google AI Commerce
  • Our Work
    • WPSOLR vs other plugins
    • Brands & Agencies we  💛
    • WPSOLR Customer Success Stories
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • Tel
    • US : (951) 612-8259
    • France : 01 62 04 55 85
Expand All Collapse All
  • What is WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Weaviate
    • Install Opensearch
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure search
      • Getting started with search
      • Getting started with Ajax (live) search
      • Getting started with facets
      • 0. Connect your indexes
        • Create a Google Retail search index
        • Create an Elasticsearch index
          • Generate a test Elasticsearch index
          • Create an Elastic Elasticsearch index
          • Create an Elasticsearch index
          • Create a Qbox Elasticsearch index
          • Create an ElasticPress Elasticsearch index
          • Create an Aiven Elasticsearch or OpenSearch index
          • Create a Bonsai Elasticsearch index
          • Create an Amazon AWS Elasticsearch index
          • Create an ObjectRocket Elasticsearch index
          • Create a Cloudways Elasticsearch or Opensearch index
          • Create an Alibaba Cloud Elasticsearch index
          • Create a Compose Elasticsearch index
          • Connect to an Elasticsearch index
        • Create an Apache Solr index
          • Generate a test Apache Solr index
          • Create an Apache Solr index
          • Create a SearchStax SolrCloud index
          • Create an Opensolr Solr index
          • Connect to an Apache Solr index
        • Create an Opensearch index
          • Create a WPSOLR Hosting OpenSearch index
          • Create an Amazon AWS OpenSearch index
        • Create a Weaviate index
          • Weaviate with Google PaLM API
          • Weaviate with GPT4All
          • Weaviate with sentence transformers
          • Weaviate with CLIP text-to-image
          • Weaviate with HuggingFace Endpoints API
          • Weaviate with OpenAI GPT API
          • Weaviate with Cohere Multilingual API
          • Weaviate with Question Answering transformers
          • Weaviate with Hybrid search
          • Weaviate with Reranker - Cohere
          • Weaviate with Reranker - Transformers (cross-encoders)
        • Create an Algolia index
      • 1. Activate extensions (Add-ons)
        • bbPress add-on
        • YITH WooCommerce Ajax Search add-on
        • SEO add-ons
          • Yoast SEO add-on
          • All in One SEO add-on
        • Listable add-on
        • ACF add-on
        • Advanced Scoring add-on
        • Cron Scheduling add-on
        • Theme add-on
          • Filters layouts
            • Radiobox & Checkbox Layout
            • Numeric Range Layout
            • Colour Picker Layout
            • Date Picker (Flatpickr) Layout
            • Range Slider Layout
          • Add Ajax to the current Theme
          • Collapse taxonomy hierarchies
          • Custom Facets CSS
        • WPML add-on
        • Premium add-on
          • Manage more than one Elasticsearch or Solr index
        • PDF Embedder add-on
        • Geolocation add-on
        • AI Natural Language APIs add-on
          • Amazon Comprehend
          • Google Natural Language
          • Aylien Text Analysis
          • MeaningCloud
          • Qwam Text Analytics
        • Toolset Types add-on
        • AI Image and OCR APIs add-on
          • Google Vision
          • Amazon Rekognition
        • Embed Any Document add-on
        • MyListing add-on
        • Polylang add-on
        • WooCommerce add-on
        • Cross-domain federated search add-on
        • Directory+ add-on
        • Toolset Views add-on
        • Listify add-on
        • Jobify add-on
        • Query Monitor add-on
      • 2. Define your search
        • 2.3 Boosts
        • 2.3 Suggestions (Ajax search)
        • 2.1 Search
        • 2.2 Data
      • 3. Index your data
    • Configure recommendations
      • Algolia - Recommend and Personalized search
      • Recombee - Recommendations
      • Google Retail - AI Recommendations and Personalized search
      • Amazon Personalize
    • Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
    • Configure WPSOLR Parsing and Chunking
    • Create your Custom Templates for Citations, Suggestions, Related Posts & Recommendations
  • Quick start

Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

6208 views 3 November 6, 2026

RAG require a WPSOLR Enterprise license.

This documentation describe the configuration of your indexes for RAG.

 

Table of Contents

Toggle
  • WPSOLR RAG – Retrieval-Augmented Generation for WordPress & WooCommerce
    • Overview
    • Creating a WPSOLR RAG Gateway Connector
      • Configuration setting for LiteLLM
      • Configuration setting for OpenRouter
    • Activate the WPSOLR RAG add-on
  • Showing RAG Answers in results
    • RAG templates
      • RAG text templates
      • Citations Twig templates
    • RAG in search results
    • RAG in suggestions
  • Frequently Asked Questions
    • What is WPSOLR RAG?
    • What is Retrieval-Augmented Generation (RAG)?
    • How is WPSOLR RAG different from a traditional chatbot?
    • Does WPSOLR RAG work with WooCommerce?
    • Which content sources can WPSOLR RAG use?
    • Can WPSOLR RAG process PDF documents?
    • What is document chunking?
    • Do I need a vector database to use WPSOLR RAG?
    • Does WPSOLR RAG support semantic search?
    • Can I combine keyword search and semantic search?
    • Which search engines are supported?
    • Which Large Language Models can I use?
    • What is an AI Gateway?
    • Can I change my LLM provider?
    • Does WPSOLR RAG update its knowledge automatically?
    • Can WPSOLR RAG be integrated into an existing search page?
    • Can WPSOLR RAG provide references to its sources?
    • Can WPSOLR RAG handle multilingual content?
    • Can WPSOLR RAG handle large websites?
    • Does WPSOLR RAG require a specific LLM provider?
    • How much does it cost to use WPSOLR RAG?

WPSOLR RAG – Retrieval-Augmented Generation for WordPress & WooCommerce

Overview

WPSOLR RAG brings the power of Large Language Models (LLMs) directly into WordPress and WooCommerce websites.

It combines WPSOLR’s advanced search capabilities with Retrieval-Augmented Generation (RAG) to deliver AI-generated answers grounded in the actual content of your website.

Instead of relying exclusively on an LLM’s general knowledge, WPSOLR RAG retrieves relevant information from your website, provides it as context to an LLM, and generates contextual, relevant, and traceable answers.

This approach allows visitors to interact with your website through natural language, ask complex questions, and discover information more efficiently.

WPSOLR RAG turns your website into an AI-powered knowledge base.

 

Creating a WPSOLR RAG Gateway Connector

Configuration setting for LiteLLM

  1. Install LiteLLM
  2. Create a LiteLLM route (“wpsolr” here). You will select it in WPSOLR settings later.
    A route contains one or several LLM models from one or several providers.
    Image wpsolr-rag-litellm-create-route-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  3. Create a virtual key with access to your route (model”wpsolr” here). You will paste it in WPSOLR settings later.
    A virtual key secures access to the router, but also provides many other settings like usage statistics or budget caps.
    Image wpsolr-rag-litellm-create-virtual-key-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  4. Create a LiteLLM RAG connector in WPSOLR. Copy your virtual key and select your router created earlier:
    Image wpsolr-rag-litellm-create-litellm-connector-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  5. (Optional) Prevent bots using your RAG with CloudFlare Turnstile or Google reCAPTCH 3:
    Image wpsolr-rag-cloudflare-turnstile-bot-protection-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerceImage wpsolr-rag-google-recaptch-3-bot-protection-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerceThis is all you need to configure the LIteLLM connector. The remaining settings below are common to all parsing connectors, including LIteLLM and OpenRouter.

Configuration setting for OpenRouter

  1. Create a an account at OpenRouter
  2. Create your OpenRouter API key. You will paste it in WPSOLR settings later.
    Image wpsolr-rag-OpenRouter-create-API-key-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  3. Create an OpenRouter Preset. You will select it in WPSOLR settings later.
    Image wpsolr-rag-OpenRouter-create-preset-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
    A Preset contains one or several LLM models from one or several providers. And many parameters like model temperature.
  4. Create an OpenRouter connector in WPSOLR. Copy your API key and select your preset created earlier:
    Image wpsolr-rag-OpenRouter-create-WPSOLR-connector-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  5. (Optional) Prevent bots using your RAG with CloudFlare Turnstile or Google reCAPTCH 3:
    Image wpsolr-rag-cloudflare-turnstile-bot-protection-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerceImage wpsolr-rag-google-recaptch-3-bot-protection-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

This is all you need to configure the OpenRouter connector. The remaining settings below are common to all parsing connectors, including LIteLLM and OpenRouter.

Activate the WPSOLR RAG add-on

The add-on will take care of formatting the search results sent to and the answer retrieved from the LLM.

Image wpsolr-rag-add-on-activation-scaled.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

 

Showing RAG Answers in results

RAG templates

RAG text templates

You can modify the RAG text templates in menu “2.6 Texts”. Those texts can also be translated with WPSOLR WPML or Polylang add-ons.

Image wpsolr-rag-texts.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

Citations Twig templates

For more advanced modifications, you can duplicate the WPSOLR Twig templates into your active theme’s directory.
Image wpsolr-rag-templates.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

Image wpsolr-rag-template-answer.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

RAG in search results

Select any search query already configured, from any search engine. With or without citations. Here we use an OpenSearch vector search configured with citations.

Image wpsolr-rag-settings-in-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

  • Choose to insert the RAG answer in the search results automatically:
    Image wpsolr-rag-insert-in-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerceor insert the RAG shortcode anywhere in the search results page:
    Image wpsolr-rag-shortcode-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  • Choose your RAG Gateway connector on the  search connector:

Image wpsolr-rag-connector-selection-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

  • Choose a RAG template to display the AI-generated answer :
    Image wpsolr-rag-answer-template-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
    This template renders as:
    Image wpsolr-rag-answer-template-example.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  • Choose a RAG template for the waiting screen :
    Image wpsolr-rag-wait-template-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
    This template renders as:
    Image wpsolr-rag-wait-template-example.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  • Choose a RAG template for the prompt :
    Image wpsolr-rag-prompt-template-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
    or create your own prompt:
    Image wpsolr-rag-custom-prompt-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce
  • Other parameters:
    Image wpsolr-rag-other-settings-on-search.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

 

RAG in suggestions

  • All suggestions created on a search query with a RAG will automatically show the RAG answers too
  • The RAG answer will appear on the suggestions managed by this search connector:
    Image wpsolr-rag-insert-in-suggestions.png of Configure WPSOLR RAG - Retrieval-Augmented Generation for WordPress & WooCommerce

Frequently Asked Questions

What is WPSOLR RAG?

WPSOLR RAG (Retrieval-Augmented Generation) combines
advanced search technologies with Large Language Models (LLMs)
to generate answers based on your website content.
It retrieves relevant information from your WordPress website
and uses it as context for AI-generated answers.

What is Retrieval-Augmented Generation (RAG)?

RAG is an AI architecture that enhances Large Language Models
by providing them with relevant information retrieved from
external knowledge sources. Instead of relying exclusively
on the model’s training data, answers are generated using
up-to-date information retrieved from your own content.

How is WPSOLR RAG different from a traditional chatbot?

A traditional chatbot primarily relies on an LLM’s general
knowledge. WPSOLR RAG retrieves relevant information from
your website before generating an answer. This allows the
chatbot to answer questions about your products, articles,
documentation, and other proprietary content.

Does WPSOLR RAG work with WooCommerce?

Yes. WPSOLR RAG can retrieve information from WooCommerce
product catalogs, including product descriptions,
specifications, attributes, and custom fields.
It can help customers discover products and ask natural-language
questions about your catalog.

Which content sources can WPSOLR RAG use?

WPSOLR RAG can work with WordPress posts, pages, custom post
types, WooCommerce products, media library documents,
and other content sources supported by the configured
document processing and indexing integrations.

Can WPSOLR RAG process PDF documents?

Yes. PDF documents can be extracted, processed, split into
smaller chunks, and indexed for retrieval. This makes their
content available to answer questions through RAG.

What is document chunking?

Chunking consists of splitting large documents into smaller,
meaningful sections. These sections are indexed individually
so that WPSOLR can retrieve only the information relevant
to a visitor’s question.

Do I need a vector database to use WPSOLR RAG?

Not necessarily. WPSOLR can use different search technologies
depending on your retrieval strategy. Semantic retrieval
generally requires vector indexing, while keyword-based
retrieval can use traditional full-text search.

Does WPSOLR RAG support semantic search?

Yes. By using embedding models and compatible search engines,
WPSOLR can retrieve content based on semantic similarity
rather than relying exclusively on exact keyword matches.

Can I combine keyword search and semantic search?

Yes. Hybrid search combines traditional full-text retrieval
with semantic vector retrieval. This can improve relevance
by considering both the words used in a query and its meaning.

Which search engines are supported?

WPSOLR integrates with multiple search technologies,
including Apache Solr, Elasticsearch, OpenSearch,
and other supported retrieval platforms.
The available capabilities depend on the selected integration.

Which Large Language Models can I use?

WPSOLR RAG can connect to compatible LLM providers through
supported AI gateways. Depending on your configuration,
you can use models from OpenAI, Anthropic, DeepSeek,
and other providers.

What is an AI Gateway?

An AI Gateway provides a unified API to connect to different
AI model providers. Solutions such as LiteLLM and OpenRouter
allow you to manage model access and switch between providers
without redesigning your RAG integration.

Can I change my LLM provider?

Yes. By using a compatible AI gateway, you can select
different LLM providers and models according to your
performance, quality, and cost requirements.

Does WPSOLR RAG update its knowledge automatically?

RAG answers are based on the content available in the
configured search index. When your website content changes,
the corresponding content is reindexed to make those
changes available to retrieval.

Can WPSOLR RAG be integrated into an existing search page?

Yes. WPSOLR RAG can complement your existing WordPress search
results. An AI-generated answer can be retrieved asynchronously
and displayed above conventional search results, without
requiring visitors to wait for the LLM response before
browsing the search results.

Can WPSOLR RAG provide references to its sources?

Retrieved documents can be used to provide contextual
references to relevant website content. The exact presentation
of source links depends on the configured prompt and frontend.

Can WPSOLR RAG handle multilingual content?

Yes, depending on the selected embedding models, search engine,
and LLM. Multilingual embedding models and compatible retrieval
engines can support searches across multiple languages.

Can WPSOLR RAG handle large websites?

Yes. WPSOLR is designed to integrate with scalable search
technologies capable of indexing millions of documents.
The overall capacity depends on the search infrastructure,
document processing resources, and selected AI models.

Does WPSOLR RAG require a specific LLM provider?

No. The architecture is designed to support different
compatible providers and AI gateways, avoiding unnecessary
dependency on a single AI vendor.

How much does it cost to use WPSOLR RAG?

The total cost depends on your search infrastructure,
document processing requirements, embedding usage,
and LLM API consumption. LLM providers generally charge
according to the number of input and output tokens.

Was this helpful?

3 Yes  No
Related Articles
  • Configure WPSOLR Parsing and Chunking
  • Create a WPSOLR Hosting OpenSearch index
  • Create your Custom Templates for Citations, Suggestions, Related Posts & Recommendations
  • Getting started with facets
  • Getting started with Ajax (live) search
  • Getting started with search

Didn't find your answer? Contact Us

Previously
Amazon Personalize
Up Next
Configure WPSOLR Parsing and Chunking

Customer Success Stories

Built for brands and agencies worldwide

Adobe
Software Development
10K+ employees
Harvard University
Higher Education
798K alumni
University of Essex
Higher Education
101K alumni
Tally
Software development
501-1K employees
WebFX
Advertising Services
501-1K employees
DEFINITION 6
Advertising Services
1K-5K employees
Proto Thema
Newspaper Publishing
51-200 employees
The Fold London
Retail Apparel and Fashion
11-50 employees
Georgia-Pacific LLC
Paper and Forest Product Manufacturing
10K+ employees
Agencies, Software, Universities, Media, Newspapers, Publishers, Retails, Manufacturing, E-Commerce. And many more »

Recommended content

Powered by WPSOLR Enterprise with Recombee

Understand Where Your Store Is Losing Sales
Join our Affiliate Program!
Features
Search Hosting for WordPress
File Parsing and Chunking
Integration Hub
Search
Facets (Filters)
Search Add-ons
Recommendations
AI Answers with RAG
Keyword search engines
Comparison grid
Apache Solr & Solr Cloud
Elasticsearch
OpenSearch
Algolia
AI search engines
Comparison grid
PostgreSQL pgvector
Weaviate
Google Retail
Vespa.ai
OpenSearch vector
AI recommendation engines
Comparison grid
Recombee
Amazon Personalize
AI personalization engines
Comparison grid
Google Retail
Algolia
Buy and Learn
Pricing
Privacy policy
Terms and Conditions
© 2026 Eostis SARL. All Rights Reserved.
More
My licenses
Support
Documentation
Blog
Recommendations powered for you by WPSolr
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}