A conversational AI assistant that transforms structured data into insights using Large Language Models (LLMs). Inspired by a real deployment at Moneris using Azure OpenAI.
This project demonstrates how to:
- Load and interpret structured business tables (e.g., sales, transactions, forecasts)
- Accept natural language queries like:
βWhat was the top-performing product last quarter?β
βCompare merchant volumes year-over-year.β - Parse the question β construct a structured SQL-like query β extract answer β summarize with LLM
- Modular
LangChain-style pipeline - Prompt-engineered context windows for structured data
- OpenAI (or Azure OpenAI) support
- Multi-table support (simulate sales, merchants, forecasts, fraud)
TableGPT/
βββ data/ # Sample structured datasets (CSV)
βββ notebooks/ # Test notebooks for question-answering
βββ results/ # Query logs, responses, summaries
βββ src/ # Core logic (prompt builder, QA engine)
βββ requirements.txt # Python dependencies
βββ README.md # Project overview
- Clone the repo:
git clone https://github.com/mageed-ghaleb/TableGPT.git
cd TableGPT- Install dependencies:
pip install -r requirements.txt- Add your OpenAI or Azure OpenAI key as environment variable:
export OPENAI_API_KEY=your-key-here- Run the pipeline (coming soon):
python src/query_interface.py- Conversational business dashboards
- Natural language BI queries
- GenAI layer on top of data warehouses
Developed by Mageed Ghaleb β Senior Data Scientist | AI Engineer | Co-Founder of MetaForge
Based on enterprise GenAI deployment for business intelligence.
MIT License β Free to use with attribution.