AI Query
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
Before using AI Query, complete the steps in Prerequisites for AI Features.
Note:
Only Service Administrators can create AI connections.- Deploy Essbase in Marketplace or
Autonomous AI Database Serverless deployment mode.
- Use an Oracle AI Database 26ai with the required permissions.
-
Create Global Connections in Essbase
In the Essbase web interface, under Sources:- Create an Oracle AI Database Connection:
Set up 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 as the connection type and complete the set up. For detailed steps, see Create a GenAI Connection.
- Create an Oracle AI Database 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.- Go to the Applications page.
- Select the application.
- Select the link next to AI Status.
- Select Agree to accept the terms and conditions.
- Select the AI connection that you want to associate.
- Select Associate.
- Vectorize Outline
- Run the Vectorize Outline job to convert your database outline to vectors. For complete instructions, see Vectorize Outline.
- Once the job is submitted, a background process performs outline vectorization. After the job completes successfully, AI Query becomes available for the selected application and database. The Vectorize Outline job is a one-time process.
Note:
You can monitor the status of the Vectorize Outline job from the Jobs page in the Essbase web interface. - Interact With AI QueryOnce the vectorization job is complete:
- Open your Application and select your Database.
- Select Analyze Data.
- Select Reports.
- Select 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, select the Create Report.
- Enter a name for the report in the Name field and select 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, select the action menu next to the report and select Edit or Delete as needed.
- Natural Language to MDX Query Generation
- In the left pane, select Create, then select Use Natural Language Query.
- Enter your query in the Natural Language Query field and select Generate MDX.
- Select Validate to review the generated MDX.
- Once validated, select 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, select the action menu next to the report and select Edit or Delete as needed.
Dissociate an AI Connection
- Go to the Applications page.
- Select the application.
- Select Delete next to the AI connection name.
- Select Dissociate to confirm.
Note:
This action starts a background job that deletes all vector tables and related AI data created during outline vectorization in your Oracle AI Database schema.