Chat with Data is an interactive streamlit based chat UI application built with Prediction Guard, enabling users to engage in conversations powered by data from various datasets. This application demonstrates how to implement chat functionalities with a focus on querying single and multiple datasets, including jobs, social media, and movies, for insightful data-driven interactions.
- Data-Driven Chat Interface: Engage in conversations that fetch and display data from datasets in real-time.
- Support for Multiple Datasets: Seamlessly switch between datasets on jobs, social media, and movies for diverse inquiries.
- Dynamic SQL Query Generation: Automatically generates SQL queries based on user questions to retrieve relevant data.
- Secure and Private: Implements checks for Personally Identifiable Information (PII) and SQL injection vulnerabilities to ensure secure interactions.
Before you begin, ensure you have met the following requirements:
- Python 3.8 or later
- Streamlit
- Pandas
- DuckDB
- Other dependencies listed in
requirements.txt
- Clone the repository:
git clone https://github.com/predictionguard/datachat-streamlit.git
cd streamlit-chat-with-data
- Install the required Python packages:
pip install -r requirements.txt
- Running the Application To run the application, navigate to the project directory and execute:
python -m streamlit run Home.py