# 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.

## Configuration options

### AI search results list settings

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

### Display settings

In *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 as of version Sitefinity CMS 15.4.8626.\
For older Sitefinity 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)
