> For the complete documentation index, see [llms.txt](https://docs.getinfinity.app/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getinfinity.app/user-guide/comprehensive-user-guide/1.-connecting-your-data/ai-powered-context-generation-wizard.md).

# AI-Powered Context Generation Wizard

This wizard assists in automating data definitions using AI-powered insights. It helps generate contextual metadata for your data sources, improving the accuracy and usability of AI-driven analytics.

### **Step 1: Navigate to the Table Selection Page**

* After connecting your data source, navigate to the **Table Details** step.
* You will see a list of tables with their **completion status**.
* Tables marked **"uncompleted"** require data definitions.

🔹 **Action**: Click on a table (e.g., **"manufacturer"**) to start defining its data.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2FhQbkSTvk8JdP66T8VhQM%2Fimage.png?alt=media&amp;token=6e9e866f-5b7c-4458-8607-523423617123" alt=""><figcaption></figcaption></figure>

***

### **Step 2: Open the AI Wizard for Data Definitions**

* After selecting a table, the **AI wizard** will launch.
* The wizard automatically **suggests descriptions** based on table content.
* Click **“Try it now!”** to use AI-generated suggestions.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2FwopJ0jD2wtFEgEI0cmuc%2Fimage.png?alt=media&amp;token=4b400011-d0bb-4d2b-a221-06b6b2125b5c" alt=""><figcaption></figcaption></figure>

***

### **Step 3: Review and Edit Table Descriptions**

* The wizard presents an **AI-generated description** of the table.
* **Edit the description** to ensure accuracy and completeness.
* The description should **clearly define** the table's purpose and key attributes.

🔹 **Best Practice**: Include **key details** like relationships with other tables, data types, and business context.<br>

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2FqYUmUUfXvsxLAF1fEdRU%2Fimage.png?alt=media&amp;token=93fa0414-ab13-451f-8211-3da30e8d7b10" alt=""><figcaption></figcaption></figure>

***

### **Step 4: Define Insights and Chart Expectations**

* The wizard will prompt:\
  **“What insights or charts would you like to generate from this table?”**
* Select or describe expected charts, such as:
  * Number of manufacturers per country
  * List of manufacturers by name
  * Count of manufacturers

🔹 **Action**: Choose relevant insights to improve AI-driven visualization recommendations.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2Fd8Fc1tTK4t3P8WbOVb3i%2Fimage.png?alt=media&amp;token=cf485a1b-b0bd-47b1-9702-87ede1a2c06e" alt=""><figcaption></figcaption></figure>

***

### **Step 5: Column-Level Data Definitions**

* Next, define **each column** in the selected table.
* The wizard provides **suggestions for column descriptions** (e.g., **Country, ManufacturerID, Name**).
* Review and refine AI-generated descriptions to ensure clarity.

🔹 **Example**:

* **Column Name**: `Country`
* **AI-Suggested Description**: "The country where the manufacturer is located. Code: US, MX."
* **Action**: Edit if necessary to include more context.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2Fk6FICPDPImaTH64bDqHA%2Fimage.png?alt=media&amp;token=43f201e7-7d4e-47d9-9278-e3e8fe18d77c" alt=""><figcaption></figcaption></figure>

***

### **Step 6: Review Summary for Data Definitions**

* The wizard compiles all table and column descriptions into a **summary view**.
* Ensure all required details are correct and meaningful.

🔹 **Action**: Add any missing details before proceeding.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2FhqD4Kej8nAfMI4nljJ2L%2Fimage.png?alt=media&amp;token=9c21d04e-78ab-46d9-a8c0-cd910786f524" alt=""><figcaption></figcaption></figure>

***

### **Step 7: Finalizing Data Definitions**

* After reviewing, the wizard enhances the descriptions using **context gathered throughout the steps**.
* The final descriptions are **more detailed and AI-optimized**.

🔹 **Action**: Click **"Complete"** to save the definitions.

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2F2sQ6MgdGwhYEQShnstf4%2Fimage.png?alt=media&amp;token=03b08217-21c0-4f83-bce9-33c67a230017" alt=""><figcaption></figcaption></figure>

***

### **Step 8: Confirm and Save Definitions**

* Once saved, the platform uses these descriptions for:\
  ✔ **AI-powered chart generation**\
  ✔ **Query automation (SQL generation)**\
  ✔ **Improved Q\&A about data and insights**\
  ✔ **Delta monitoring and debugging**

🔹 **Action**: Proceed to the next step in the data setup process.\ <br>

<figure><img src="https://2441185785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTNY9XuZbora2UmeM4sm%2Fuploads%2FUDwwKlX2rN0Ziv2XjEDu%2Fimage.png?alt=media&amp;token=fc36b368-575b-48c6-870a-82c69c7fe247" alt=""><figcaption></figcaption></figure>
