sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Class AiService

Service for working with Sisense Fusion Generative AI.

Constructors

constructor

new AiService(sisenseContextService, aiContextConfig?): AiService

Parameters

ParameterType
sisenseContextServiceSisenseContextService
aiContextConfig?AiContextConfig

Returns

AiService

Methods

getNlgInsights

getNlgInsights(params): Promise< string | undefined >

Fetches an analysis of the provided query using natural language generation (NLG). Specifying NLG parameters is similar to providing parameters to the QueryService.executeQuery service method, using dimensions, measures, and filters.

Parameters

ParameterTypeDescription
paramsGetNlgInsightsParamsParameters for getting NLG insights

Returns

Promise< string | undefined >

NLG insights text summary


getNlqResult Beta

getNlqResult(params): Promise< WidgetProps | undefined >

Executes a natural language query (NLQ) against a data model or perspective

Parameters

ParameterTypeDescription
paramsGetNlqResultParamsNLQ query parameters

Returns

Promise< WidgetProps | undefined >

The result as WidgetProps


getQueryRecommendations Beta

getQueryRecommendations(params): Promise< QueryRecommendation[] >

Fetches recommended questions for a data model or perspective.

Parameters

ParameterTypeDescription
paramsGetQueryRecommendationsParamsParameters for recommendations

Returns

Promise< QueryRecommendation[] >

An array of objects, each containing recommended question text and its corresponding widgetProps

Last Updated: