Datrics Text2SQL: A Framework for Natural Language to SQL Query Generation

Tetiana Gladkykh, Kyrylo Kirykov
4/3/2025
cs.DBcs.AIcs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Text-to-SQL systems enable users to query databases using natural language, democratizing access to data analytics. However, they face challenges in understanding ambiguous phrasing, domain-specific vocabulary, and complex schema relationships. This paper introduces Datrics Text2SQL, a Retrieval-Augmented Generation (RAG)-based framework designed to generate accurate SQL queries by leveraging structured documentation, example-based learning, and domain-specific rules. The system builds a rich Knowledge Base from database documentation and question-query examples, which are stored as vector embeddings and retrieved through semantic similarity. It then uses this context to generate syntactically correct and semantically aligned SQL code. The paper details the architecture, training methodology, and retrieval logic, highlighting how the system bridges the gap between user intent and database structure without requiring SQL expertise.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gladkykh2025datrics,
  title  = {Datrics Text2SQL: A Framework for Natural Language to SQL Query Generation},
  author = {Tetiana Gladkykh and Kyrylo Kirykov},
  year   = {2025},
  eprint = {2506.12234},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.12234v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.12234.svg)](https://codeofpaper.com/paper/2506.12234)

Discussion