Skip to content

Mageed-Ghaleb/TableGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TableGPT

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.

🧠 What It Does

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

πŸ›  Features

  • Modular LangChain-style pipeline
  • Prompt-engineered context windows for structured data
  • OpenAI (or Azure OpenAI) support
  • Multi-table support (simulate sales, merchants, forecasts, fraud)

πŸ“ Folder Structure

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

πŸš€ Getting Started

  1. Clone the repo:
git clone https://github.com/mageed-ghaleb/TableGPT.git
cd TableGPT
  1. Install dependencies:
pip install -r requirements.txt
  1. Add your OpenAI or Azure OpenAI key as environment variable:
export OPENAI_API_KEY=your-key-here
  1. Run the pipeline (coming soon):
python src/query_interface.py

πŸ“Š Example Use Cases

  • Conversational business dashboards
  • Natural language BI queries
  • GenAI layer on top of data warehouses

πŸ‘¨β€πŸ’» Author

Developed by Mageed Ghaleb – Senior Data Scientist | AI Engineer | Co-Founder of MetaForge
Based on enterprise GenAI deployment for business intelligence.

πŸ“„ License

MIT License – Free to use with attribution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages