Wednesday, November 25, 2026

RAG on Sitecore: What Has Actually Been Published (Part 2)

 

Six published implementations, one shared shape, and the Sitecore XP documentation behind them

Hello Sitecorian Community,

Part 1 explained the pattern. The next question is the practical one:

“Has anyone actually built this on Sitecore, and what did they use?”

This post answers it from the published record: six implementations, plus the Sitecore XP documentation they rely on.

🔍 Why I Looked Into This

After the concepts, I wanted to see what is genuinely possible on Sitecore today, as described by the people who built it. So I read community blogs, an MVP’s posts and repositories, conference sessions and vendor documentation. Then I went to the Sitecore XP documentation behind them, because that is where the details that decide a project tend to live. I wrote down what each source says, in its own terms, and I do not rank them.

✅ Why This Is Useful

  • One list compares six published implementations by knowledge source, retrieval layer, model and hosting.
  • The range is visible at a glance: fully self-built pipelines, a managed cloud service, Sitecore Search as the retrieval layer, and a packaged connector.
  • The XP documentation is collected in one place, with versions, so you can check your own release against it.
  • Every claim has a source, and sources I could read only as excerpts are marked.

⚠️ Check These First

Before choosing a pattern, these documented items are worth checking against your own installation:

  • Headless Services license: needed for the Layout Service. It is included in subscription licenses from 10.2 and is an add-on for perpetual licenses. Search license.xml for Sitecore.JSS to check. Source: Installing Headless Services
  • Layout Service Placeholders field: must be populated so a rendering’s placeholders are discoverable. Source: Layout Service
  • Analytics tracking: the tracking parameter defaults to true on XP, and Sitecore advises false for calls you do not want tracked. Source: Layout Service
  • Solr version: XP 10.4.1 requires Solr 9.8.1. XP 10.5 supports Solr 10 only, with no backward-compatibility path. Sources: XP 10.4.1 release notes and XP 10.5 breaking changes
  • Webhook availability: webhook event handlers are documented for XP 10.3 and 10.4. Source: 10.4 documentation

1. Six Published Implementations at a Glance

Here is each one by knowledge source, retrieval layer, model and hosting.

Costoya: site assistant, February 2026

  • Knowledge source: page content from the Layout Service (JSS), with URLs from the sitemap
  • Retrieval layer: Qdrant vector database
  • Model: Claude API; the author notes it can be swapped, including for a local model
  • Hosting described: Kubernetes (Deployment, StatefulSets, CronJob)

Velir: developer assistant

  • Knowledge source: Sitecore documentation, converted to Markdown
  • Retrieval layer: RAGFlow with the Infinity database
  • Model: self-hosted through vLLM or Ollama, or externally hosted; qwen3 and deepseek-v3 tried
  • Hosting described: Docker containers on Linux; a VM is discussed as an option

Earlam: developer-portal chatbot, SUGCON India 2024

  • Knowledge source: data indexed in Sitecore Search from Sitecore’s web properties
  • Retrieval layer: queries against Sitecore Search
  • Model: Azure OpenAI; the abstract cites GPT-4
  • Hosting described: the Sitecore Developer Portal, an open-source project

Ramanathan: Vertex AI chat and search, October 2024

  • Knowledge source: Sitecore content, with XP through an SPE PowerShell module and XM Cloud through Sitecore Connect
  • Retrieval layer: Vertex AI Data Store
  • Model: a Vertex AI Agent Builder chat or search app, with optional Google Search grounding
  • Hosting described: Google Cloud

Ramanathan: AI chatbot for XP websites

  • Knowledge source: XP website content
  • Retrieval layer: Azure Cognitive Search
  • Model: Azure OpenAI
  • Hosting described: uses Sitecore PowerShell Extensions

SearchBlox: Sitecore Collection

  • Knowledge source: published pages and content from a Sitecore instance
  • Retrieval layer: SearchBlox vector index, with an optional knowledge graph
  • Model: embedding, reranker and LLM providers set per collection
  • Hosting described: the vendor states on-premises, private cloud or hybrid deployment

A seventh source is José Neto’s session Unlocking the Power of AI in Sitecore. Its abstract says it demonstrates how to leverage RAG and integrate the concept into Sitecore, and explores current technologies that can bring valuable AI tools to real-world scenarios.

2. The Shared Shape — Source, Retrieval Layer, Model

Each lane in the diagram lists the knowledge source, retrieval layer and model as the source describes them. The sections below take each pattern in turn.

3. Site Assistant Over Structured Pages — Costoya

Costoya’s goal is for every page of a Sitecore site to answer questions in real time, citing the exact page the answer lives on. Part 1 walks through his pipeline. The points specific to this pattern are:

  • Scale: about 800 Sitecore pages produced about 3,000 unique chunks, and ingestion took about 10 minutes.
  • Single source of truth: content authors keep working in Sitecore exactly as before, and the AI picks up their changes on the next ingestion cycle, with no retraining, fine-tuning or manual intervention.
  • Page context expansion: after the top-K chunks are found, additional chunks from the same pages are fetched, so the LLM sees more of the most relevant pages.
  • Independence of layers: because knowledge and reasoning are separate, the LLM can be swapped without re-ingesting content.
  • Ephemeral conversations: session history is held in Redis with a 24-hour expiry, and he notes that permanent storage creates GDPR and privacy concerns.

4. Developer Assistant Over Sitecore Documentation — Velir

Velir’s problem statement is that general-purpose LLMs find it hard to craft components or scripts in C#, XML or JavaScript exactly as Sitecore expects, that Sitecore PowerShell Extensions can be confused with ordinary PowerShell, and that Content Hub references specific JavaScript libraries. Their answer is RAG over Sitecore documentation and code examples. Their choices:

  • Host: RAGFlow, an open-source host environment for LLM systems that builds chat tools and agent workflows over many document types.
  • Database: the Infinity database, selected with DOC_ENGINE=${DOC_ENGINE:-infinity} in the Docker .env file.
  • Documents: PDF, DOC, TXT, MD, CSV, XLSX, images and slides. Converting text to Markdown makes code samples explicit.
  • Knowledge bases: one per target area, separated by product and version, for example 10.4 versus 9.0, XM Cloud and Content Hub.
  • Parser: Naive by default; DeepDoc for PDFs with images, which needs more time and compute.
  • Embedding: Nomic Embed Text, chosen for wide context length and auditability. It need not match the chat model.
  • Chunking: General chunking, because the documents are Markdown.
  • Accuracy settings: auto-keywords, auto-questions and RAPTOR improved retrieval accuracy. The knowledge graph is not used because it consumes more compute or tokens.
  • Tuning: parse a single document, test with Retrieval Testing, then tune.
  • Chat settings: keyword analysis, selection of knowledge bases and a system prompt. Reasoning, knowledge graph or re-rank make the system call the LLM repeatedly, and the default re-rank combines weighted keywords with vector cosine similarity.
  • Models: qwen3 and deepseek-v3 initially succeeded. The choice is a matter of testing, and tool or thinking models may suit iteration and API calls.
  • Hosting trade-offs: self-hosting through vLLM or Ollama gives control of the whole process, lowers the risk of leaking confidential information and avoids token tracking, but needs hardware. Newer developer laptops can run models of roughly 4 to 14 billion parameters (2 to 10 GB).
  • GPU: RAGFlow offers a Docker Compose file for GPUs. Parsing is a one-time cost, so specifications can be raised only while parsing.

5. Sitecore Search as the Retrieval Source — Earlam

Rob Earlam presented this at SUGCON India 2024 in Bengaluru. The session page describes using RAG to pull data from Sitecore Search and ground queries against LLMs such as GPT-4, so that the LLM only uses contextually relevant information and the team has greater control over what is returned to the end user.

  • Where it runs: on Sitecore’s Developer Portal, using data indexed from all of Sitecore’s web properties to provide a contextually aware chatbot. The Developer Portal is an open-source project, and the source code shown in the demo was to be publicly available to attendees.
  • What is indexed: his slides list Sitecore.com, the Discover Sitecore YouTube channel, Helix documentation, Sitecore GitHub repositories, Sitecore Stack Exchange, Sitecore community blogs, the Sitecore Developer Portal, Sitecore documentation, the Sitecore Knowledge Base, Sitecore PowerShell documentation, OrderCloud documentation, Sitecore Blok and the Sitecore changelog.
  • Model: the “RAG with Sitecore Search” slide pairs those sources with Azure OpenAI.
  • Context: the chatbot was part of an internal Sitecore AI hackathon. The session focused on the RAG portion, while the project also covers persona-based tailoring of results and CDP tracking and governance.

6. Managed Cloud Services — Ramanathan

Subramanian Ramanathan, a Sitecore Technology MVP, published Integrating Sitecore and Vertex AI for Dynamic Chat & Search on 28 October 2024. The architecture gathers information from Sitecore and other sources, organizes it in a Data Store, and delivers conversational responses through an AI-driven interface. Its components are Vertex AI Agent Builder, Sitecore’s SPE and Sitecore Connect modules, and Google Search Grounding. Agent Builder removes the need to build the chat or search application and its underlying components from scratch.

The setup steps in the post are:

  1. Set up a Google Cloud project and enable the Vertex AI and Dialogflow APIs.
  2. Create a chat or search app in Agent Builder, linking an existing or new Data Store.
  3. Configure the goals, instructions and tools.
  4. Integrate Sitecore with the Data Store to index website content. For XP, deploy or customize the PowerShell module. For XM Cloud, use the Connector SDK and a recipe with Sitecore Connect.
  5. To enable Google Search Grounding, create a custom Google Cloud function that fetches, summarizes and returns responses using data from the Data Store and Gemini AI.
  6. Publish Sitecore content to populate the Data Store, validate the agent’s responses, and embed the agent in the website through Agent Builder’s publish option.

The module’s source is on GitHub, needs no license and, per the post, does not collect any of your information. His GitHub profile pins two related repositories. One is described as an AI-powered chatbot for Sitecore using Google Vertex AI Agent Builder, Dialogflow CX, Google Search Grounding and Sitecore Connect. The other is described as an AI-powered chatbot for XP websites using Azure OpenAI, Cognitive Search and Sitecore PowerShell Extensions. Sitecore’s MVP directory entry for the same author lists an open-source SPE-based module that integrates Sitecore with Azure OpenAI and Cognitive Search, tagged for Sitecore XM, XP and SitecoreAI, and a blog post on creating an enterprise chat experience for websites supported by Sitecore.

7. A Packaged Connector — SearchBlox

SearchBlox’s documentation for its Sitecore Collection describes a connector that indexes published pages and content from a Sitecore instance and can build a RAG index over it:

  • Connection: base URL; a username and password with read access; an optional API key; the database; the root item ID (GUID) where crawling starts; and the language code.
  • Database: web for published content, master for draft and unpublished content.
  • RAG: turning it on builds a retrieval index of vector embeddings used for RAG, hybrid search and AI answers. It applies at the next index, so the collection is re-indexed to build or rebuild it.
  • Chunking: the strategy defaults to recursive, and size can be measured in tokens or characters. The default is 300 tokens with an overlap of 30. It applies at indexing, and changing it later requires re-indexing.
  • LLM enrichment: titles, descriptions and topics can be generated with an LLM while indexing, and images can be described and OCR applied using a vision model.
  • Relevance: Auto Relevance uses hybrid search, and the page suggests comparing keyword search with hybrid before enabling it.
  • Models: embedding, reranker and LLM provider and model can be set per collection, overriding global configuration.
  • Knowledge graph: optional extraction of entities and relationships, applied at the next index.
  • Schedule: once, hourly, daily, every 48 hours, every 96 hours, weekly or monthly.
  • Data fields: a KNN_Vector field type stores vector embeddings for semantic search.
  • Deployment: the vendor’s homepage FAQ says SearchAI deploys on-premises, in private cloud or hybrid. Its documentation includes PrivateLLM installation pages, among them Ollama on AWS EC2, Ollama on an Azure VM and AWS Bedrock.

A SearchBlox article on Medium, Sitecore Search with AI: How to Enable RAG and Knowledge Graphs with SearchBlox, walks through the same setup. In the excerpt available, it lists basic authentication as the option for Sitecore XP on-premise, shows a connection test call to /sitecore/api/ssc/item?path=/sitecore/content&sc_database=web, and says SearchBlox fetches language-specific item versions from Sitecore.

8. What Sitecore XP Documents — The Pieces These Patterns Rely On

Layout Service and Headless Services

Sitecore documents the Layout Service as a Headless Services endpoint that exposes layout information as structured JSON, produced through the Sitecore Rendering Engine.

  • Requirements: per the installation page, Headless Services needs Sitecore 9.0 Update-1 or later (10.0 or later for some JavaScript SDKs such as Next.js) and a Headless Services license. From 10.2 the license is included in subscription licenses; for perpetual licenses it is an add-on. You can check a license by searching license.xml for Sitecore.JSS.
  • API key: an SSC API key is required, in the query string or in an sc_apikey HTTP header.
  • Placeholders: the service must know a rendering’s placeholders to return the full layout, so the Layout Service Placeholders field must be populated. Sitecore notes this is not the same as Allowed Controls.

The request format is:

/sitecore/api/layout/render/[config]?item=[path]&sc_lang=[language]&sc_apikey=[key]&tracking=[true|false]&sc_site=[your-site-name]

The parameters, as documented:

  • config: named Layout Service configuration, usually jss for JSS.
  • item: path relative to the context site’s home item, or an item GUID.
  • sc_lang: language version to retrieve.
  • version: item version number, an integer.
  • sc_site: site to fetch for, also needed for the analytics tracking included in calls.
  • tracking: XP only; enables or disables analytics tracking for the call; defaults to true.

The documented output contains field values and metadata (including the item ID and template), the placeholders and renderings as a nested tree, and by default the serialized datasource item of each rendering. Fields are serialized by type (rich text, image, general link, date, checkbox, links, multi-links, number, file, plain text) and all other types are returned raw. A rendering’s output can be customized with IRenderingContentsResolver. Because rendering goes through the mvc.renderPlaceholder pipeline, the output accounts for personalization rules and component-level content testing; page-level content tests are not supported. Sitecore advises setting tracking=false for calls you do not want tracked, and cautions that the placeholder action can corrupt xDB page-visit data without it.

Sitecore also documents an Edge Preview GraphQL endpoint provided by Headless Services, which JSS can query (JSS GraphQL API).

Publish events

Sitecore documents webhook event handlers for XP in its 10.3 and 10.4 documentation. A handler is an item under /sitecore/System/Webhooks with the fields Enabled, Events, Rule, Url, Serialization Type (JSON by default, or XML) and Authorization.

  • publish:end is raised when publishing of the item ends. item:saved can be raised several times during simple operations in the UI.
  • Without a rule, an event from any item sends a request. Sitecore highly recommends defining rules to avoid performance degradation, and recommends an HTTPS URL.
  • Every request carries EventName, WebhookItemId and WebhookItemName. For publish:end the event-specific property is PublisherOptions, described as basic publish information. Item events carry the affected item, including its language, version, ID and template ID.
  • For custom code, Velir reports that in a CM/CD setup publish:end passes SitecoreEventArgs, while publish:end:remote passes PublishEndRemoteEventArgs, which exposes a RootItemId. Their article uses Sitecore 7 and 8 era configuration.

Solr versions

  • XP 10.3: Solr 8.11.2, per the SearchStax compatibility table, which says it derives from Sitecore’s table (excerpt).
  • XP 10.4.0: Solr 8.11.2, called the “former version” in the XP 10.4.1 release notes.
  • XP 10.4.1: Solr 9.8.1, supported and required, per the same release notes.
  • XP 10.5 (released 5 August 2026): Solr 10 only, with Solr 8 and 9 removed, per the XP 10.5 breaking changes.

The 10.4.1 notes add that Solr 8.11.2 is no longer supported in 10.4 container images, because monthly OS patches stopped for them. The 10.5 notes add that there is no backward-compatibility path to Solr 10, that Solr connection strings carry credentials (https://user:password@hostname:port/solr), that ContentSearch.Solr.SendPostRequests now defaults to true so Solr queries go out as POST, and that Schema Populate rewrites the class of every language text field type (text_*, excluding text_ws and text_general*) to solr.SortableTextField on every run.

Vector search documentation

  • Solr 9.8: DenseVectorField with a required vectorDimension; similarityFunction is euclidean (default), dot_product or cosine; cosine scores are normalized as (1 + cosine) / 2; dot_product needs unit-length document and query vectors; HNSW parameters hnswMaxConnections and hnswBeamWidth; a knn parser (topK defaults to 10), vectorSimilarity and an experimental knn_text_to_vector parser; fq filters become an implicit pre-filter when knn is the main q; knn can rerank first-pass results; multivalued vectors are unsupported; vectors are generated outside Solr. Source: Solr 9.8 guide
  • Solr 10.0: the same, plus hnswM and hnswEfConstruction, seedQuery, early termination, quantized dense vector field types and experimental GPU acceleration. XP 10.5 documents compatibility with Solr 10.0.0. Source: Solr 10.0 guide
  • Qdrant: a Query API; metrics Dot, Cosine, Euclid and Manhattan, with cosine vectors normalized when added; a filter with must conditions; payload indexes recommended for filtered fields; a score_threshold parameter; a grouping API that groups by a payload field such as a document ID (keyword or integer values); and hybrid and BM25 full-text queries, marked available from v1.10.0. Source: Qdrant Similarity Search
  • Ollama: /api/embed accepts a string or an array and returns L2-normalized, unit-length vectors. Vector length depends on the model, typically 384 to 1,024, and the same embedding model should be used for indexing and querying. Source: Ollama Embeddings

Final Thoughts

The published work shows more than one way to do this. Two implementations build the whole pipeline themselves (Costoya and Velir). One uses Sitecore Search as the retrieval layer (Earlam). One relies on a managed cloud service, with an XP route through a PowerShell module (Ramanathan). One is a packaged connector (SearchBlox). What they share is the same shape: a knowledge source, a retrieval layer and a model. The XP documentation in section 8 is the part to read against your own release before you pick one.

Stay tuned for more Sitecore-related articles, tips, and tricks to enhance your Sitecore experience.
Till then, happy Sitecoring! 😊

Sources

Consulted as of 24 November 2026. Everything below was read in full except the items marked as excerpts.