Project: datalens
81 entity types
Matrix/User Interface/text_to_sql.py
PageUser Interface

text_to_sql.py

text_to_sql.py is changed to generate PostgreSQL-compatible SQL instead of DuckDB SQL by modifying the prompt to specify PostgreSQL dialect. The text_to_sql.py prompt and code were modified to generate PostgreSQL-specific SQL compatible with PgDataService. The backend code file text_to_sql.py uses SQLCoder-7B as the default model for Text-to-SQL queries.

Attributes
labelsPage,Entity
page typePage
Relationships3 connections
Loading graph...