Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.48.1
metadata
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
- Install dependencies:
pip install -r requirements.txt
- Initialize data:
python setup_data.py
- Run the app:
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
- Select mode from sidebar (SQL or RAG)
- Ask questions in natural language
- 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