01 ⟨ INSIGHTS ⟩

AI / ML articles

02 posts in AI / ML

AI / ML
Fine-Tuning Phi-1 for Natural Language to SQL Conversion (Part 2: Query Generation and API Integration)

In the second part of this series, we move beyond model training and bring our fine-tuned Microsoft Phi-1 to life. This article focuses on query generation, safe SQL execution, and building a Flask-based API that allows real-time interaction with financial databases.

AI / ML
Fine-Tuning Phi-1 for Natural Language to SQL Conversion (Part 1: Building and Training the Model)

In today’s data-driven world, being able to query databases with natural language is becoming increasingly valuable. Imagine simply typing: “Show me the total interest income of Kumari Bank in April 2022” and instantly receiving a valid SQL query (and even the corresponding chart!) — no manual SQL writing required.