> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up RAG for Textual Columns

Retrieval-Augmented Generation (RAG) for Textual Columns makes unstructured long texts, such as product reviews or support tickets, available for AI-based summarization and generation.

RAG indexes the content of specific columns so that Wisdom can answer qualitative questions about the data rather than just returning quantitative counts.

## Configuration steps

To configure RAG for a table, follow these steps:

1. Navigate to **Domains** > Select your preferred domain > **Data Sources** > **Tables** and locate the table for which you want to configure RAG columns.
2. Click the **three vertical dots** icon, then click **RAG Settings**.

<img alt="Snippet showing the RAG Settings option selected in a table menu." title="Snippet showing how to open the RAG Settings" className="rounded-image dark:hidden" style={{ borderRadius:"10px" }} lightAlt="Snippet showing the RAG Settings option selected in a table menu." darkAlt="Snippet showing the RAG Settings option selected in a table menu." src="https://mintcdn.com/wisdomai/JQ4LJpo88z8ml9ZD/images/new-ui-rag-configuration-columns.png?fit=max&auto=format&n=JQ4LJpo88z8ml9ZD&q=85&s=0391c6db19bc3d8a643029581f5adbc8" width="1820" height="992" data-path="images/new-ui-rag-configuration-columns.png" />

<img alt="Snippet showing the RAG Settings option selected in a table menu." title="Snippet showing how to open the RAG Settings" className="rounded-image hidden dark:block" style={{ borderRadius:"10px" }} lightAlt="Snippet showing the RAG Settings option selected in a table menu." darkAlt="Snippet showing the RAG Settings option selected in a table menu." src="https://mintcdn.com/wisdomai/FPeFp9c8fz1r_sxU/dark-img/new-ui-rag-configuration-columns.png?fit=max&auto=format&n=FPeFp9c8fz1r_sxU&q=85&s=d39d57387063c1d37a9b9b18fb12f0f2" width="1820" height="992" data-path="dark-img/new-ui-rag-configuration-columns.png" />

3. In the **RAG Configuration for Textual Columns** window that opens, complete the following:
   * In the **Text content columns for search** field, select the columns that contain rich text content that will be searched over.
   * In the **Filter columns for queries** field, select columns with structured data (such as IDs or dates) to narrow search results.
   * In the **Primary key** field, choose one or more columns that uniquely identify each row in the table.
   * In the **Description of search columns** text box, write a brief description of what the combination of the search columns represents. This helps the AI better understand the context of your data.
   * (Optional) Click **Advanced Options** to specify **which columns to include for citation titles** **and URLs** in the AI's answers.
4. Click **Save** to apply your settings. A notification will appear confirming that the configuration has been updated and that the data sync has been triggered.

<img src="https://mintcdn.com/wisdomai/BjH1RKWagelPz0hO/images/RAG-Configuration-columns02.png?fit=max&auto=format&n=BjH1RKWagelPz0hO&q=85&s=ef11485f18b71e3be6f3fa25df5e71bd" alt="RAG Configuration Columns 01 Pn" title="Snippet showing the RAG Configuration Modal" className="rounded-image dark:hidden" style={{ borderRadius:"10px" }} lightAlt="RAG Configuration Columns 01 Pn" darkAlt="RAG Configuration Columns 01 Pn" width="927" height="1184" data-path="images/RAG-Configuration-columns02.png" />

<img src="https://mintcdn.com/wisdomai/FPeFp9c8fz1r_sxU/dark-img/RAG-Configuration-columns02.png?fit=max&auto=format&n=FPeFp9c8fz1r_sxU&q=85&s=4f8679fa822b0535930adeb8e726a932" alt="RAG Configuration Columns 01 Pn" title="Snippet showing the RAG Configuration Modal" className="rounded-image hidden dark:block" style={{ borderRadius:"10px" }} lightAlt="RAG Configuration Columns 01 Pn" darkAlt="RAG Configuration Columns 01 Pn" width="757" height="887" data-path="dark-img/RAG-Configuration-columns02.png" />

## Use case example: Analyzing product reviews

Imagine a table containing Amazon product reviews with the following columns: `Review ID`, `Product Name`, `Date`, and `Feedback` (the open-ended field that contains long user-generated texts). To enable thematic analysis, you would configure the table as follows:

| **Configuration Field**     | **Selected Column**    | **Purpose**                                                         |
| :-------------------------- | :--------------------- | :------------------------------------------------------------------ |
| **Text content for search** | `Feedback`             | Contains the long texts that the AI will summarize.                 |
| **Filters for queries**     | `Product Name`, `Date` | Allows Wisdom to narrow the search to specific items or timeframes. |
| **Primary Key**             | `Review ID`            | Uniquely identifies each row to aid in accurate data retrieval.     |

**This setup would enable WisdomAI to answer these kinds of questions:**

* "What are the positive themes for feedback on iPhone?"
* "What are people complaining about for the iPhone?"
* "What themes are emerging from feedback about the iPhone?"

<Warning>
  **Filter Limitations**

  If you do not include a column, such as `Date`, in the **Filters for queries** field, WisdomAI cannot effectively use it to narrow down results. For example, if `Date` is not selected as a filter, WisdomAI cannot answer: *"What is the positive feedback for iPhone in 2026?"*
</Warning>

<CardGroup cols={3}>
  <Card title="Advanced Data Modeling" icon="sitemap" href="/setting-up-wisdom-ai/advanced-data-modeling-creating-context">
    Define relationships and context in your data to enable more powerful analysis.
  </Card>

  <Card title="Provide Feedback to the System" icon="thumbs-up" href="/setting-up-wisdom-ai/feedback-mechanisms/provide-feedback-to-the-system">
    Learn how to rate answers and provide corrections to improve the system's accuracy.
  </Card>

  <Card title="Understand Domains" icon="sliders" href="/setting-up-wisdom-ai/manage-domains/understand-domains">
    Manage and customize your data domains to refine context and improve query results.
  </Card>
</CardGroup>
