Skip to content

A Streamlit app that uses OpenAI's LLM for natural language data analysis. Upload CSV files, ask questions in plain English, and get instant insights. Powered by PandasAI, it's designed for quick, code-free exploration of structured data.

Notifications You must be signed in to change notification settings

KarthikSundaram4419/llm-powered-data-analysis

Repository files navigation

Leveraging OpenAI's Large Language Model for Data Analysis

This Streamlit-based application allows users to interact with CSV files using natural language. Powered by OpenAI's large language model and the PandasAI library, it enables effortless data analysis without writing any code.

πŸš€ Features

  • πŸ“ Upload and analyze multiple CSV files
  • πŸ’¬ Query your data using plain English
  • πŸ€– Responses generated by OpenAI's GPT model
  • 🧠 Intelligent analysis powered by PandasAI
  • ⚑ Real-time, interactive responses via Streamlit

πŸ“¦ Installation

  1. Clone the repository

    git clone https://github.com/your-username/your-repo-name.git
    cd your-repo-name
    
  2. Create a virtual environment and activate it python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

  3. Install dependencies pip install -r requirements.txt

  4. Add your OpenAI API key Create a .env file and add: OPENAI_API_KEY=your-api-key-here

Usage

  1. Run the Streamlit app: streamlit run your_script_name.py
  2. Upload one or more CSV files via the interface.
  3. Type a query like: "Show me the average salary." "What is the trend in sales over time?"
  4. Get your insights instantly, no coding required.

πŸ“š Example Queries

"How many rows are in the dataset?"

"What is the correlation between age and income?"

"Plot a bar chart of category vs. total revenue."

🧠 Tech Stack

Python
Streamlit
OpenAI API
PandasAI
pandas
dotenv

πŸ“ License

This project is open-source under the MIT License.

About

A Streamlit app that uses OpenAI's LLM for natural language data analysis. Upload CSV files, ask questions in plain English, and get instant insights. Powered by PandasAI, it's designed for quick, code-free exploration of structured data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages