Set Up AI Query for Essbase
To enable and use AI Query in Oracle Essbase with Oracle AI Database 26ai, you must set up connections and vectorize the outline. For AI powered data analysis, you can then submit natural language queries (NLQ), which generate valid MDX queries you can save as reports.
Note:
Oracle Essbase includes features powered by artificial intelligence (AI) and Generative AI (Gen AI). While Oracle strives to provide accurate results, Gen AI outputs may be incorrect, incomplete, or inappropriate. Information provided by Gen AI features should be verified by users before taking action or making decisions based on it. Oracle is not liable for damages or losses arising from the use of Gen AI features.
Prerequisites
- Install Oracle AI Database 26ai.
- Deploy Essbase 21.8.1.0.0 or higher using the OCI Marketplace.
- Only Service Administrator can create AI connections.
-
Create Global Connections in Essbase
In the Essbase web interface, under Sources:- Create a Connection:
Setup a connection to Oracle AI Database 26ai. For detailed steps, see Create a Connection and Datasource to Access Oracle Database.
- Create a GenAI Connection:
Select GenAI for the connection type and complete the setup. For detailed steps, see Create a GenAI Connection.
- Create a Connection:
- Associate an AI Connection with Your Application
Note:
Only users with Application Manager permission can associate or dissociate an AI connection with an application.- Select your application, click the Disabled status next to AI Status, choose your AI connection from the drop-down menu.
- Click Agree to accept the terms and conditions before proceeding.
- Click Associate to complete the connection.
- Vectorize Outline
- Run the Vectorize Outline job to convert your database outline to vectors. For complete instructions, see Vectorize Outline.
Note:
You can track the job progress in the Jobs section of the Essbase web interface.
- Run the Vectorize Outline job to convert your database outline to vectors. For complete instructions, see Vectorize Outline.
- Interact With AI Query
Once the vectorization job is complete:
- Open your Application and select your Database.
- Click Analyze Data.
- Select Reports.
- Click AI Query to open the AI Query panel.
Additional Options in the AI Query Panel
When you launch the AI Query panel, you can select from system-generated (auto-populated) starter questions.
AI Query features:- Repopulate this query: Regenerates the answer based on the same question.
- Show MDX query: Displays the generated MDX query.
- Copy MDX query: Copies the generated MDX to your clipboard.
- Explain MDX: Provides a natural language explanation of the generated MDX query, making it easier to understand the query structure and purpose.
- Analyze query in Smart View: Opens the report in Oracle Smart View for further analysis in Excel.
- Clear conversation: Resets the session or conversation history.
- Natural Language to Report Generation (Smart View Reports)
- In the AI Query panel, click the Create Report icon.
- Enter a name for the report in the Name field and click OK. The report will appear in the Reports section in the left pane.
- Select the generated report to start working on it directly in the spreadsheet.
- To edit or delete a report, click the action menu next to the report and select Edit or Delete as needed.
- Natural Language to MDX Query Generation
- In the left pane, click Create, then select Use Natural Language Query.
- Enter your query in the Natural Language Query field and click Generate MDX.
- Click Validate to review the generated MDX.
- Once validated, click Save. The report will appear in the Reports section in the left pane.
- Select the generated report to start working on it directly in the spreadsheet.
- To edit or delete a report, click the action menu next to the report and select Edit or Delete as needed.
- Dissociate an AI Connection
- To dissociate an AI connection, open the application page and click the Disassociate connection icon next to AI Status, and then click Dissociate to confirm.
Note:
This action will start a background job that deletes all vector tables and related AI data created during outline vectorization in your Oracle AI Database schema, ensuring all associated data is removed.
- To dissociate an AI connection, open the application page and click the Disassociate connection icon next to AI Status, and then click Dissociate to confirm.