Text2SQL System
===============

Overview
--------

Natural language to SQL conversion pipeline with schema linking and prompt engineering.


SQL Graph
---------

.. automodule:: openchatbi.text2sql.sql_graph
    :members:
    :undoc-members:
    :show-inheritance:

SQL Generation
--------------

.. automodule:: openchatbi.text2sql.generate_sql
    :members:
    :undoc-members:
    :show-inheritance:

Schema Linking
--------------

.. automodule:: openchatbi.text2sql.schema_linking
    :members:
    :undoc-members:
    :show-inheritance:

Information Extraction
----------------------

.. automodule:: openchatbi.text2sql.extraction
    :members:
    :undoc-members:
    :show-inheritance:

Text2SQL Utilities
-------------------

.. automodule:: openchatbi.text2sql.text2sql_utils
    :members:
    :undoc-members:
    :show-inheritance: