Project: datalens
81 entity types
Matrix/Architecture/TextToSQLService
ThirdPartyComponentArchitecture

TextToSQLService

TextToSQLService converts natural language questions into SQL queries using LLMs, building prompts with schema info and parsing responses for execution. QuestionRouter uses TextToSQLService for generating SQL from natural language queries on the structured path. TextToSQLService integrates with Ollama LLM by calling its generate API on qwen3-coder-next model to generate SQL queries. QuestionRouter uses TextToSQLService for generating SQL from natural language queries on the structured path. TextToSQLService integrates with Ollama LLM by calling its generate API on qwen3-coder-next model to generate SQL queries. TextToSQLService depends on IronClawClient integration for agent logic involving SQL generation. QuestionRouter depends on TextToSQLService to convert natural language queries to SQL. DataLens Development uses TextToSQLService which connects to Ollama for generating SQL from natural language queries. TextToSQLService enables QueryDataSkill to convert natural language queries to SQL queries. Text-to-SQL Service is defined in backend/app/services/text_to_sql.py. The generate_sql method is part of the Text-to-SQL Service.