microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps

Home Page:https://aka.ms/semantic-kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python: New Feature: Create a sample demonstrating how to do "NL2SQL" with function calling

matthewbolanos opened this issue · comments

The goal of this sample is to demonstrate how a developer can build a more accurate (and faster) agent, if they use function calling instead of NL2SQL

This sample should...

  • Initialize a SQLite database
  • Load the database with there related tables
  • Create 2-3 functions that query the database
  • Add the functions as a plugin to the kernel

Bonus... The sample could also show a more generic NL2SQL plugin and how it performs worse than the previous functions.

  • The LLM calls will be larger because the entire database schema needs to be sent
  • The LLM is bad at writing SQL (show a low % of success)