---
title: "RelatedQuestionsOptions"
slug: "cloud-sdk-search-relatedquestionsoptions-1539476"
abstract: "The RelatedQuestionsOptions interface represents options to retrieve AI-generated question-and-answer pairs relevant to the site visitor's query. Used in the questions-answers object of a widget item."
---
# RelatedQuestionsOptions

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/server` |

Options to retrieve AI-generated question-and-answer pairs relevant to the site visitor's query. Used in the questions-answers object of a widget item.

## Signature

```typescript
export interface RelatedQuestionsOptions {
  limit?: number;
  includeSources?: boolean;
  filter?: Filter;
  offset?: number;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `limit` | `integer` | Optional.<br><br>The number to set as the question-and-answer pair limit.<br><br>[Used for pagination](https://doc.sitecore.com/search/en/developers/search-developer-guide/en/using-pagination.html) by specifying the maximum number of question-and-answer pairs to return.<br><br>Minimum: `1`.<br><br>Maximum: `100`. | `25` |
| `includeSources` | `boolean` | Optional.<br><br>Include configured additional attributes from index documents used to generate this answer. | `true` |
| `filter` | [`Filter`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/types/cloud-sdk-search-filter.html "Filter") | Optional.<br><br>Various filter criteria that can be used to filter the content to be returned. | N/A |
| `offset` | `integer` | Optional.<br><br>The number of items to skip in the results that are returned.<br><br>[Used for pagination](https://doc.sitecore.com/search/en/developers/search-developer-guide/en/using-pagination.html) by indicating how many results to skip.<br><br>For example, `10` means the related question-and-answer pairs show the 11th item onwards.<br><br>Minimum: `1`. | `1` |