All Products
Search
Document Center

Hologres:Build a ChatBI application with Dify and Hologres

Last Updated:Mar 26, 2026

Connect your Hologres data warehouse to Dify's hologres_text2data plugin to let business users query data in plain language — no SQL required. For example, a sales manager can ask "What were the top 5 products by revenue last quarter?" and receive a direct answer from your Hologres data. This guide walks you through the full setup: installing the plugin, configuring a model provider, importing a pre-built workflow, and connecting it to your Hologres instance.

What you'll accomplish:

  • Install the hologres_text2data plugin and a Qwen model provider in Dify

  • Import a ready-to-use ChatBI workflow via DSL file

  • Configure the workflow to connect to your Hologres database

  • Publish and run the ChatBI application

This guide uses a pre-built DSL file to get you started quickly. To build a custom workflow instead, see the hologres_text2data source code on GitHub.

Prerequisites

Before you begin, ensure that you have:

Usage notes

Dify runs all queries against Hologres using the credentials you configure. Because a single set of credentials is shared across all user queries, apply the following controls before you proceed:

  • Resource isolation: Use Serverless Computing to isolate query resources and prevent ChatBI queries from competing with other workloads on the instance.

  • Permission isolation: Grant only SELECT permissions to the Dify user, not write or admin permissions. This limits the blast radius if the user account is misused. For access control details specific to ChatBI, see the Dify documentation.

Set up the ChatBI application

Step 1: Install the plugin and model extension

  1. In the Dify console, click Extensions, then select Explore Marketplace.

  2. Search for hologres_text2data and click Install.

  3. Search for tongyi and click Install.

image
The hologres_text2data plugin is available in the Dify Marketplace. Its source code is open source on GitHub.

Step 2: Configure a model provider

  1. In the Dify console, click My Account and select Settings.

    image

  2. In the left navigation pane, click Model providers.

  3. Click Settings next to Qwen. In the Add Qwen dialog box, enter your API key. To get an API key, click Get API key from Alibaba Cloud Model Studio in the dialog box. See Call the Qwen API for the first time.

  4. Click Save.

Step 3: Import the ChatFlow DSL file

  1. In the Dify console, select Studio from the menu bar, then click Import DSL file.

    image

  2. In the dialog box, upload the DSL file: Hologres ChatBI with Holo Plugin-250422-v1.yml.

  3. Click Create.

After the upload completes, Dify generates the following workflow. It uses the Qwen-Max-Latest model from Alibaba Cloud Model Studio by default. For available models, see Model list.

image

Step 4: Configure Hologres connection parameters

On the Orchestration page of the ChatFlow, click the hologres_text2data node and the hologres_excute_sql node. Configure the following parameters for each node:

ParameterDescription
Database IP address or domain nameThe endpoint of the Hologres instance. Example: hgprecn-cn-xxxk3ovx003-cn-hangzhou.hologres.aliyuncs.com. To find the endpoint, log on to the Hologres Management Console, go to Instances, click the instance ID, and find the Network Information section on the Instance Details page. See Endpoint.
Database portThe port number. Default value: 80.
Database NameThe name of the database you created. To find the database name, log on to the Hologres Management Console, go to Instances, click the instance ID, then click Database Management. The database name is listed on the Database Authorization page.
UsernameThe name of the Hologres user. Format: BASIC$<name>. To find the username, log on to the Hologres Management Console, go to Instances, click the instance ID, then click Account Management. The username is listed on the Users page. See User management.
PasswordThe password for the Hologres user.

Step 5: Publish and run

  1. In the upper-right corner, click Publish > Publish update.

  2. After publishing completes, click Publish > Run to open the ChatBI application and start querying your data in natural language.

What's next