Skip to content

Disha152/Intellect-Prompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-POWERED QUERY GENERATOR

team_physco_file_round2_demo_vedio.mp4

This project demonstrates a web-based application to query a dataset through natural language using AI-powered solutions.

Features

  1. Error Handling - Included try-except block to catch and display errors from both PandasAI and Google GenerativeAI and added voice recognition error handling.
  2. Real time Query Suggestions - Added an expander with the sample query suggestions assiting users in formatting queries.
  3. Advanced Visualization - Utilized plotly library for plotting the retrieved data which is the actual response.

Implementation

Travel to the root of the directory !

For this purpose, it uses:

Download Dataset

Download the dataset "data" folder to the root folder of directory , from dataset.

Run the Project

If you don't have a Python environment available, you can use the conda package manager which comes with the Anaconda distribution to manage a clean Python environment.

Setup Conda Environment

Create a new environment and activate it:

conda create -n streamlit-pandasai python=3.9
conda activate streamlit-pandasai

Install the Dependencies

In your active conda environment install dependencies :

pip install streamlit google-generativeai python-dotenv pandas pandasai numpy faker pydantic requests pyyaml SpeechRecognition plotly

Set the API KEYS :

  1. Get your apis key from Pandasai and GoogleAPI.
  2. Replace the 'your_pandasai_api_key' and 'your_google_api_key' with your actual apis key in your main.py file with your actual api key.
  3. Save the changes.

Run the app

streamlit run main.py

Therefore , our query generator not only give the SQL query but also it's explanation , the output and the visual reperesentation of data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages