Spaces:
Sleeping
Sleeping
File size: 1,278 Bytes
7a9f0a8 9fbdde4 7a9f0a8 42cabf2 7a9f0a8 5aedaec 42cabf2 5aedaec 42cabf2 7a9f0a8 42cabf2 5aedaec 7a9f0a8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
---
title: "RAG Chatbot"
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: "1.28.1"
app_file: app.py
pinned: false
---
# Hybrid Search Chatbot
A Streamlit app for hybrid search: SQL (Sakila DB) and semantic (RAG, AG News/ChromaDB).
## Features
- **SQL Mode**: Natural language queries on Sakila movie database
- **RAG Mode**: Semantic search on AG News articles with ChromaDB
## Quick Start
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Initialize data:
```bash
python setup_data.py
```
3. Run the app:
```bash
streamlit run app.py
```
## Configuration
- Edit `.env` for API keys:
```
GOOGLE_API_KEY=your-google-api-key-here
```
## Dependencies
See `requirements.txt` for full list:
- streamlit
- chromadb
- langchain
- langchain-google-genai
- sentence-transformers
- datasets
## Usage
1. Select mode from sidebar (SQL or RAG)
2. Ask questions in natural language
3. Get AI-powered answers
### Example Questions
**SQL Mode:**
- How many films are there?
- Show me the top 5 longest films
- Which actors have the most films?
**RAG Mode:**
- What's happening with oil prices?
- Tell me about technology news
- Any sports updates?
---
Created by Bharath Gajula | Powered by Gemini & LangChain
|