Skip to content

Support AI-assisted SQL generation via ClickHouse client integration #439

@niyue

Description

@niyue

Use Case

Starting from ClickHouse 25.7, ClickHouse Client and clickhouse-local include AI-powered functionality that converts natural language descriptions into SQL queries. This feature allows users to describe their data requirements in plain text, which the system then translates into corresponding SQL statements. [1]

chdb could support similar capability without too much effort. This functionality is particularly valuable during exploratory data analysis. In environments such as Jupyter notebooks, an AI model can quickly interpret the table schema, generate representative sample data, and streamline a variety of routine tasks.

Describe the solution you'd like

The ClickHouse client already implements this capability in C++, and chdb could leverage the same code path and expose it through its language bindings, such as Python. This avoids code duplication, and any future improvements made by the ClickHouse team would automatically benefit chdb as well.

References

[1] AI-powered SQL generation, https://clickhouse.com/docs/use-cases/AI/ai-powered-sql-generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions