Oracle Analytics Cloud (OAC) provides AI-powered conversational features to help everyone from consumers to power users in their work. These features require a good indexing strategy of datasets or subject areas. Choosing which subject area columns to index can be challenging. This article explains how to use a large language model (LLM) to propose an indexing strategy.
Understand why indexing matters
An AI system that queries the database directly needs context about business rules, relationships, and calculations. In OAC, those rules already exist in the semantic model (subject areas). AI features query the presentation layer, and OAC translates that logical query into a physical database query. You don’t need to teach AI your business logic from scratch. Instead, use indexing to guide AI toward the relevant parts of the subject area.

An effective index gives OAC AI features a focused, business-friendly view of the semantic model. This helps the system identify the right measures, dimensions, and values when users ask questions. An overly broad index gives AI more ambiguous fields to choose from, can increase costs, or lead to an incorrect answer. An overly narrow index lacks the context needed to answer valid questions. The goal isn’t to index everything; aim to index the smallest, safest set of business concepts that can answer questions users actually ask.
LLMs can help turn a long inventory of subject-area columns into an indexing proposal for review. The proposal can identify what to include, how to index it, which terms need synonyms, and what to exclude or protect.
Give the LLM a safe, structured input
- Start with business questions (NOT subject area columns). Collect 15–30 realistic questions from the intended audience to define the purpose of the index. For example, users of a sales subject area might ask:
- What is the pipeline by region this quarter?
- Which accounts have the largest open opportunities?
- How is the win rate trending by product family?
- Which sales reps are behind quota?
- If usage tracking is available, use it to identify frequently queried columns. Including more columns can increase the risk of incorrect AI responses and slower performance. Check the column limit and performance guidance for your target release.
- Export the indexing configuration as a comma-separated values (CSV) file:
- In OAC, open the Console.
- Select Search Index.
- On the Data Model tab, select the subject area.
- Select Export.
For detailed instructions, see Export and import a CSV configuration

The export process creates a comma-separated values (CSV) file that provides the starting structure for the LLM. This is the structure in which the LLM deliver its output.

- Tell the LLM which columns in the CSV file to fill in, what they mean, and which values are allowed. For details, see OAC documentation on supported fields and values.
- Provide documentation on semantic models, OAC indexing and indexing frequently asked questions (FAQ).
- Provide approved internal documentation that explains the subject area’s business rules.
- If your security policies allow it, provide the semantic model file as a reference for the LLM.
- Consider including these instructions for the LLM:
- Synonyms should be different from attribute names.
- Synonyms should be unique.
- Don’t use certain characters (such as “,” or “/”) or reserved words (such as “count”, “year” or any SQL reserved word) as synonyms. Check proposed synonyms against the restrictions documented for your release. See Tips on Using Synonyms for Search Indexes.
- Ask the LLM to suggest synonyms based on the business questions.
- Ask the LLM to include the data format, especially for dates. For example: specify Purchase Date as YYYY-MM-DD. You can find this information in the semantic model.
- Add any other instructions for the LLM that are relevant to your use case.
Don’t paste production rows, personal identifiable information, credentials, connection strings, or restricted business data into a public AI tool; review the metadata for restricted information before sharing it.
Use the example prompt provided here as a starting point. Adapt it to your requirements.
Understand the CSV file
To review the LLM’s indexing recommendations for your subject area, first understand what each CSV field means and which values it supports:
- EnableAssistant (shown as “Assistants” on Search Index screen) – Specify whether to include the subject area, metric, or attribute in the index. Values you see in the file:
- “Y” (shown as a checkmark on Search Index screen) – index the attribute or metric for AI purposes.
- “N” (shown as a blank on Search Index screen) – exclude the attribute or metric from the index.
- IndexType (shown as “Crawl Status” on Search Index screen) – Specify whether to index column names (metadata) only or both, column names and distinct values. Values you see in the file:
- “Index Metadata Only” (shown as “Name” on Search Index screen) – index attribute names only. Always use this option if the column contains sensitive data values that you don’t want to expose to users.
- o “Index” (shown as “Name & Values” on Search Index screen) – index attribute names and distinct values. Use this option when the attribute has few distinct or users are likely to mention them; such as region names, product families, named segments, or common opportunity stages. Avoid this option for IDs, free text with many distinct values, or attributes that users won’t use to filter a question.
Choose carefully whether to include values. As a rule of thumb, index both data and metadata for columns with few distinct values or categorical data. For columns with many distinct values, index metadata only.
- DataSecurity (shown as “Sensitive Data” on Search Index screen) – Specify whether the data is sensitive. Values you see in the file:
- “Y” (shown as a checkmark on Search Index screen) – allow only authorized users to receive this column in Assistant responses. Use this option with caution because it can slow performance.
- “N” (shown as a blank on Search Index screen) – allow all users to access the index. Don’t rely on specifying “N” to hide content; use access permissions to control access.
- EnableHomePageAsk (shown as “Homepage search” on Search Index screen) – Specify whether to index the subject area home page search. Values you see in the file:
- “Y” (shown as a checkmark on Search Index screen) – include the subject area in home page search.
- “N” (shown as a blank on Search Index screen) – exclude the subject area from home page search.
- Synonyms – enter a comma-separated list of alternative names for an attribute or metric, such as terms or acronyms used in your organization. Don’t assign the same synonym to two columns or use another column’s name as a synonym.
- Annotations (shown as “AI descriptions” on Search Index screen) – Add information that helps AI interpret the subject area, metric, or attribute when responding to users. Include relevant business knowledge, such as data formats, combinations of dimension columns to use with a specific measure, and explanations of values whose meanings aren’t obvious.
- IsAIGenerated (not shown in Search Index screen) – Indicate whether a person or an AI model generated the description. Values you see in the file:
- “Y” – an AI model generated the description.
- “N” – a person wrote the description
Validate the proposed configuration
Treat the table generated by the LLM as a proposal, not the final authority. Review its entries with the data owner, the semantic model owner, and the security owner before applying them. The LLM can propose a strategy, but the data owner must approve it.
First things first, security. If the index includes sensitive data, ask the security owner to verify the proposed handling of those columns.

Enable indexing (check mark on Assistant column) only for the intended scope. Start with one subject area or a business-focused subset. Expand only when testing identifies a gap. OAC lets administrators select or exclude subject areas, tables, and columns.
Review Synonyms. Ask domain experts to review synonyms and remove ambiguous or locally incorrect terms.
Import and test the approved configuration
- In OAC, open the Console.
- Select Search Index
- On the Data Model tab, select the subject area
- Select Import.
- Select the reviewed and approved CSV file.
The system imports the configuration and starts indexing automatically. Wait for indexing to finish before testing.

After the indexing finishes, run the representative questions. Compare measures, filters, date interpretation, and results with expected answers. Record failures and revise the proposal before expanding its scope.
Call to action
Try the workflow for yourself. Start with one subject area and a small representative set of business questions. Test the approved configuration before expanding its scope.
To make future changes easier to review, keep these items together:
- The set of business questions.
- The LLM recommendation table with reviewer decisions
Keeping these items together makes changes easier to audit, move between environments, and revisit as the subject area evolves.