# AI Search

## Overview

> info  **PREREQUISITES**:
>
> * AI Search is available out of the box as of version Sitefinity CMS 15.4.8626. For older supported versions, you can use the custom widget samples from the respective article.
> * A Progress Agentic RAG account is required to manage knowledge boxes.

The AI Search widgets provide a conversational, context-aware search experience powered by Progress Agentic RAG. The widgets are designed to work together with the Sitefinity's native Agentic RAG connector.\
For more information on the connector, see [Agentic RAG connection](https://www.progress.com/documentation/sitefinity-cms/agentic-rag-connection).

## AI Search widgets based on the Agentic RAG connector

* AI ask box widget - To learn more about this widget, see [AI ask box widget](https://www.progress.com/documentation/sitefinity-cms/ask-box-widget).
* AI answer widget - To learn more about this widget, see [AI answer widget](https://www.progress.com/documentation/sitefinity-cms/ai-answer-widget).
* AI search results widget - To learn more about this widget, see [AI search results widget](https://www.progress.com/documentation/sitefinity-cms/ai-results-widget).

Together, the AI Search widgets create an engaging, dynamic search experience that improves content discoverability and user satisfaction.

## How the AI Search widgets retrieve data

The *AI search results* and *AI answer* widgets send requests to different Progress Agentic RAG endpoints through the Sitefinity CMS proxy:

| Widget              | Progress Agentic RAG endpoint                                                                 | Compatible search mode |
| ------------------- | --------------------------------------------------------------------------------------------- | ---------------------- |
| *AI search results* | `/find` - returns the resources and paragraphs that are most relevant to the query.           | `search`               |
| *AI answer*         | `/ask` - calls `/find` internally and passes the results to an LLM that generates the answer. | `simple-rag`           |

For more information, see [Getting started with Search & RAG](https://docs.rag.progress.cloud/docs/rag/intro/) and [SearchConfiguration](https://docs.rag.progress.cloud/docs/develop/js-sdk/namespaces/Widget/interfaces/SearchConfiguration/) in the Progress Agentic RAG documentation.

## Search configurations and widget placement

The *AI ask box* widget passes the selected Agentic RAG connection and search configuration to the page that displays the results. All AI Search widgets on that page use the same search configuration.

* **Default setup**\
  If you use the default setup, you can place the *AI answer* and *AI search results* widgets on the same page.
* **Custom search configuration**\
  Each saved search configuration in Progress Agentic RAG has a search mode that determines which endpoint it works with. The *AI search results* widget requires a configuration in `search` mode, while the *AI answer* widget requires a configuration in `simple-rag` mode. Because a page receives only one search configuration, you cannot use a custom search configuration for both widgets on the same page.

  To use custom search configurations with both widgets, they need to be on seperate pages.
