Vashishta-S-2141's picture
Update README.md
9a4cc90 verified
---
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
1. **Upload Documents**:
- Go to the "Document Upload" tab
- Upload your files (PDF, TXT, DOCX, CSV, or XLSX)
- Click "Process & Index Documents"
2. **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
3. **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
1. Clone this repository
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Set up environment variables:
```bash
export GROQ_API_KEY=your_api_key_here
```
4. Run the application:
```bash
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