A newer version of the Gradio SDK is available:
6.1.0
metadata
title: LLM Powered Database Chatbot
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.26.0
app_file: app.py
pinned: false
space: Vashishta-S-2141/LLM_Powered_Database_Chatbot
license: mit
hardware: cpu
persistentStorage: true
π€ LLM Powered Database Chatbot
A powerful chatbot that can analyze your documents and data, providing insights and visualizations through natural language queries.
Features
- Document Analysis: Upload and query PDFs, TXT, DOCX, CSV, and XLSX files
- Data Visualization: Generate interactive plots and charts from your data
- Natural Language Interface: Ask questions in plain English
- Multiple Data Sources: Work with both documents and structured data
- Interactive Visualizations: View and save your data visualizations
How to Use
Upload Documents:
- Go to the "Document Upload" tab
- Upload your files (PDF, TXT, DOCX, CSV, or XLSX)
- Click "Process & Index Documents"
Ask Questions:
- Type your question in the chat interface
- The bot will analyze your documents and provide answers
- For data-related questions, it will generate visualizations
View Visualizations:
- Switch to the "Visualizations" tab to see your plots
- Use the buttons to save or clear visualizations
Requirements
- Groq API key (set in environment variables)
- Python 3.8 or higher
Local Development
- Clone this repository
- Install dependencies:
pip install -r requirements.txt - Set up environment variables:
export GROQ_API_KEY=your_api_key_here - Run the application:
python app.py
License
MIT License
Author
Vashishta-S-2141
Technical Details
- Built with Python, Gradio, ChromaDB, and Groq API
- Uses vector embeddings for efficient document retrieval
- Deployed on Hugging Face Spaces