# AI search results widget

## Overview

> info  **PREREQUISITES**:
>
> * This widget 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.
> * A Progress Agentic RAG account is required to manage knowledge boxes.

Displays the ranked source documents or excerpts that support the *AI answer* widget’s summary.

> info **NOTE**: Personalization of this widget is not supported.

## Search configuration requirements

The *AI search results* widget retrieves results through the Progress Agentic RAG `/find` endpoint. The widget uses the search configuration selected in the *AI ask box* widget that submits the query:

* If no search configuration is selected, the widget uses the default settings. You can place the *AI search results* and *AI answer* widgets on the same page.
* If a custom search configuration is selected, it must use the `search` search mode. Because the *AI answer* widget requires a configuration in `simple-rag` mode, place the *AI search results* widget on a separate page with its own *AI ask box* widget.

For more information, see [AI Search](https://www.progress.com/documentation/sitefinity-cms/ai-search#search-configurations-and-widget-placement).

## Configuration options

### AI search results list settings

Results per page - select how many results to be displayed per page.

### Display settings

In the *Display setting* section, you can do the following:

* Change the template\
  To change the template that the *AI search results* widget uses, select the new template in the *AI results template* dropdown box.\
  You must first have created a custom template.\
  For more information, see [Next.js pages and templates](https://www.progress.com/documentation/sitefinity-cms/next.js-pages-and-templates) and [ASP.NET Core pages and templates](https://www.progress.com/documentation/sitefinity-cms/create-an-asp.net-core-page).
* Configure the widget margins\
  In *Margins*, you can choose the margins between the text and the column where it is placed.\
  Choose from the predefined values of *none*, *small*, *medium*, or *large*.

Save your changes.

## Custom widget samples

The *AI search results* widget is available out of the box with Sitefinity CMS 15.4.8626 and newer versions.\
For older versions or a custom implementation, you can use these samples in GitHub:

* [ASP.NET Core samples](https://github.com/Sitefinity/sitefinity-aspnetcore-mvc-samples/tree/master/src/progress-agentic-rag-widgets)
* [Next.js samples](https://github.com/Sitefinity/nextjs-samples/tree/main/src/progress-agentic-rag-widgets)
* [MVC samples](https://github.com/Sitefinity/mvc-samples/tree/master/ProgressAgenticRAGWidgets)
